Bug 28797 - JSON Stringifier does not follow ES5 spec for handling of Number, String and Boolean objects
Summary: JSON Stringifier does not follow ES5 spec for handling of Number, String and ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-27 22:47 PDT by Oliver Hunt
Modified: 2009-08-27 23:17 PDT (History)
0 users

See Also:


Attachments
Patch v1 (10.16 KB, patch)
2009-08-27 22:57 PDT, Oliver Hunt
mjs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 2009-08-27 22:47:16 PDT
The JSON Stringifier currently just pulls the wrapped primitive from Number, String, and Boolean objects, rather than calling toNumber, toString, and toPrimitive as specified.
Comment 1 Oliver Hunt 2009-08-27 22:57:18 PDT
Created attachment 38716 [details]
Patch v1
Comment 2 Maciej Stachowiak 2009-08-27 22:58:39 PDT
Comment on attachment 38716 [details]
Patch v1

r=me
Comment 3 Oliver Hunt 2009-08-27 23:17:57 PDT
Committed r47857