Bug 28797

Summary: JSON Stringifier does not follow ES5 spec for handling of Number, String and Boolean objects
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch v1 mjs: review+

Oliver Hunt
Reported 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.
Attachments
Patch v1 (10.16 KB, patch)
2009-08-27 22:57 PDT, Oliver Hunt
mjs: review+
Oliver Hunt
Comment 1 2009-08-27 22:57:18 PDT
Created attachment 38716 [details] Patch v1
Maciej Stachowiak
Comment 2 2009-08-27 22:58:39 PDT
Comment on attachment 38716 [details] Patch v1 r=me
Oliver Hunt
Comment 3 2009-08-27 23:17:57 PDT
Committed r47857
Note You need to log in before you can comment on or make changes to this bug.