Closed
Bug 21799
Opened 26 years ago
Closed 26 years ago
throw of null crashes
Categories
(Core :: JavaScript Engine, defect, P3)
Tracking
()
RESOLVED
FIXED
People
(Reporter: rogerl, Assigned: rogerl)
Details
(Keywords: crash, Whiteboard: [JS15])
throw null;
boom.
| Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Updated•26 years ago
|
Severity: normal → critical
Comment 1•26 years ago
|
||
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)
Updated•26 years ago
|
Whiteboard: [JS15]
| Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 2•26 years ago
|
||
Fixed - test for object type in errorToExpcetion.
You need to log in
before you can comment on or make changes to this bug.
Description
•