Side navigation
#3139 closed bug (wontfix)
Opened July 07, 2008 02:30PM UTC
Closed June 10, 2009 09:32AM UTC
qunit: calling serialArray( [ undefined ] ) throws TypeError
Reported by: | mark | Owned by: | joern |
---|---|---|---|
Priority: | minor | Milestone: | 1.3 |
Component: | qunit | Version: | 1.2.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When two arrays are compared with isSet() and they are not the same then serialArray is called to display the actual and expected arrays. If serialArray is called with an array that has an undefined or null item in it then testrunner.js line 289:
var str = a[i].nodeName;
Throws a Type Error. Modifying this to:
var str = a[i] != undefined ? a[i].nodeName : undefined;
Appears to fix the problem.
Attachments (0)
Change History (1)
Changed June 10, 2009 09:32AM UTC by comment:1
resolution: | → wontfix |
---|---|
status: | new → closed |
serialArray is deprecated already, isSet will probably be removed as well. Use jsDump.parse() instead of serialArray, it'll handle undefined values.