Bug 41602
| Summary: | Native error prototype objects should be Error instances | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kent Hansen <kent.hansen> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | barraclough, cmarcelo |
| Priority: | P3 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | All | ||
Kent Hansen
ECMA-262, 5th edition, 15.11.7.7: "Each NativeError prototype object is an Error object (its [[Class]] is "Error")"
Object.prototype.toString.call(TypeError.prototype)
produces "[object Object]" with JSC, whereas SpiderMonkey and V8 both produce "[object Error"], as expected. Same for the other *Error prototypes.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Kent Hansen
This does not appear to be covered by any Sputnik test.
Gavin Barraclough
*** This bug has been marked as a duplicate of bug 55346 ***