Ignore:
Timestamp:
Jun 21, 2009, 4:02:13 PM (16 years ago)
Author:
[email protected]
Message:

Bug 26587: Support JSON.parse
<https://bugs.webkit.org/show_bug.cgi?id=26587>

Reviewed by Darin Adler and Cameron Zwarich.

Extend the LiteralParser to support the full strict JSON
grammar, fix a few places where the grammar was incorrectly
lenient. Doesn't yet support the JSON.parse reviver function
but that does not block the JSON.parse functionality itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/interpreter/Interpreter.cpp

    r44705 r44923  
    351351    UString programSource = asString(program)->value();
    352352
    353     LiteralParser preparser(callFrame, programSource);
     353    LiteralParser preparser(callFrame, programSource, LiteralParser::NonStrictJSON);
    354354    if (JSValue parsedObject = preparser.tryLiteralParse())
    355355        return parsedObject;
Note: See TracChangeset for help on using the changeset viewer.