Ignore:
Timestamp:
Jul 27, 2011, 2:55:40 PM (14 years ago)
Author:
[email protected]
Message:

Handle callback oriented JSONP
https://bugs.webkit.org/show_bug.cgi?id=65271

Reviewed by Gavin Barraclough.

Handle the callback oriented versions of JSONP. The Literal parser
now handles <Identifier> (. <Identifier>)* (jsonData).

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::execute):

  • runtime/LiteralParser.cpp:

(JSC::LiteralParser::tryJSONPParse):
(JSC::LiteralParser::Lexer::lex):

  • runtime/LiteralParser.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/LiteralParser.h

    r91765 r91871  
    6767            JSONPPathEntryTypeDeclare, // var pathEntryName = JSON
    6868            JSONPPathEntryTypeDot, // <prior entries>.pathEntryName = JSON
    69             JSONPPathEntryTypeLookup // <prior entries>[pathIndex] = JSON
     69            JSONPPathEntryTypeLookup, // <prior entries>[pathIndex] = JSON
     70            JSONPPathEntryTypeCall // <prior entries>(JSON)
    7071        };
    7172
     
    8182        };
    8283
    83         bool tryJSONPParse(Vector<JSONPData>&);
     84        bool tryJSONPParse(Vector<JSONPData>&, bool needsFullSourceInfo);
    8485
    8586    private:
Note: See TracChangeset for help on using the changeset viewer.