Bug 55346 - NativeError.prototype objects have [[Class]] of "Object" but should be "Error"
Summary: NativeError.prototype objects have [[Class]] of "Object" but should be "Error"
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Trivial
Assignee: Gavin Barraclough
URL:
Keywords:
: 41602 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-27 20:21 PST by Mark S. Miller
Modified: 2011-08-12 01:12 PDT (History)
2 users (show)

See Also:


Attachments
The patch (6.04 KB, patch)
2011-07-15 15:00 PDT, Gavin Barraclough
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***