Closed Bug 21799 Opened 26 years ago Closed 26 years ago

throw of null crashes

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Windows NT
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: rogerl, Assigned: rogerl)

Details

(Keywords: crash, Whiteboard: [JS15])

throw null; boom.
Status: NEW → ASSIGNED
Severity: normal → critical
Added testcases ecma_2/Exceptions/exception-010-n.js (null throw) and ecma_2/Exceptions/exception-011-n.js (undefined throw) testcases to cover this. Crash only happens if exception is uncaught, eg: js> try { throw null; } catch (e) { print ("caught " + e); } caught null js> js> throw null Segmentation fault (core dumped)
Whiteboard: [JS15]
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed - test for object type in errorToExpcetion.
Adding crash keyword
Keywords: crash
You need to log in before you can comment on or make changes to this bug.