Bug 55346

Summary: NativeError.prototype objects have [[Class]] of "Object" but should be "Error"
Product: WebKit Reporter: Mark S. Miller <erights>
Component: JavaScriptCoreAssignee: Gavin Barraclough <barraclough>
Severity: Trivial CC: cmarcelo, kent.hansen
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Description Flags
The patch sam: review+

Description Mark S. Miller 2011-02-27 20:21:21 PST
> ({}).toString.call(Error.prototype)
[object Error]
> ({}).toString.call(RangeError.prototype)
[object Object]

The first is correct. The second should be the same. This is true for all the built-in *Error prototypes that inherit from Error.prototype.

Classifying as trivial because it's hard to imagine anything would care. If closed as wont-fix, please tag as DeliberateSpecViolation or some such so we can track.
Comment 1 Gavin Barraclough 2011-07-15 15:00:54 PDT
Created attachment 101048 [details]
The patch
Comment 2 Gavin Barraclough 2011-07-15 15:03:34 PDT
Fixed in r91116
Comment 3 Gavin Barraclough 2011-08-12 01:12:16 PDT
*** Bug 41602 has been marked as a duplicate of this bug. ***