Closed Bug 890677 Opened 11 years ago Closed 11 years ago

Duck typing for Error instances fails when do_throw is passed a string

Categories

(Testing :: XPCShell Harness, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 890555

People

(Reporter: jdm, Unassigned)

References

Details

This can lead to confusing stacks like this: > 0:04.00 parent: TEST-UNEXPECTED-FAIL | ../unit/head_crashreporter.js | Unexpected exception TypeError: invalid 'in' operand error, see following stack: > 0:04.00 do_throw@/home/mihnea/localCode/Mozilla/mc/testing/xpcshell/head.js:482 > 0:04.00 handleMinidump@../unit/head_crashreporter.js:85 > 0:04.00 do_content_crash/handleCrash@../unit/head_crashreporter.js:131 > 0:04.00 do_execute_soon/<.run@/home/mihnea/localCode/Mozilla/mc/testing/xpcshell/head.js:444 wherein the actual error is totally obscured.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.