Ignore:
Timestamp:
Jan 29, 2013, 2:52:58 PM (12 years ago)
Author:
[email protected]
Message:

REGRESSION (r140594): RELEASE_ASSERT_NOT_REACHED in JSC::Interpreter::execute
https://bugs.webkit.org/show_bug.cgi?id=108097

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

LiteralParser was accepting a bogus 'var a.b = c' statement

  • runtime/LiteralParser.cpp:

(JSC::::tryJSONPParse):

LayoutTests:

Add parser test for invalid var a.b syntax

  • fast/js/parser-syntax-check-expected.txt:
  • fast/js/script-tests/parser-syntax-check.js:
File:
1 edited

Legend:

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

    r141050 r141168  
    7474            return false;
    7575        TokenType tokenType = m_lexer.next();
     76        if (entry.m_type == JSONPPathEntryTypeDeclare && tokenType != TokAssign)
     77            return false;
    7678        while (tokenType != TokAssign) {
    7779            switch (tokenType) {
Note: See TracChangeset for help on using the changeset viewer.