Ignore:
Timestamp:
Aug 27, 2009, 5:27:10 PM (16 years ago)
Author:
[email protected]
Message:

JSON.stringify replacer array does not accept values that are not string primitives.
https://bugs.webkit.org/show_bug.cgi?id=28788

Reviewed by Adam Roben

Update the JSON stringifier to initialise its replacer array according to the most
recent version of the spec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Identifier.h

    r44224 r47847  
    5555       
    5656        static Identifier from(ExecState* exec, unsigned y) { return Identifier(exec, UString::from(y)); }
     57        static Identifier from(ExecState* exec, int y) { return Identifier(exec, UString::from(y)); }
     58        static Identifier from(ExecState* exec, double y) { return Identifier(exec, UString::from(y)); }
    5759       
    5860        bool isNull() const { return _ustring.isNull(); }
Note: See TracChangeset for help on using the changeset viewer.