Ignore:
Timestamp:
Jan 14, 2014, 2:11:43 PM (11 years ago)
Author:
[email protected]
Message:

ASSERTION FAILED: !hasError() in JSC::Parser<LexerType>::createSavePoint().
https://bugs.webkit.org/show_bug.cgi?id=126990.

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

  • parser/Parser.cpp:

(JSC::Parser<LexerType>::parseConstDeclarationList):

  • We were missing an error check after attempting to parse an initializer expression. This is now fixed.

LayoutTests:

  • js/dom/parse-syntax-error-in-initializer-expected.txt: Added.
  • js/dom/parse-syntax-error-in-initializer.html: Added.
  • js/resources/parse-syntax-error-in-initializer.js: Added.
  • Added bug test case as a regression test.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/Parser.cpp

    r161309 r162006  
    661661            next(TreeBuilder::DontBuildStrings); // consume '='
    662662            initializer = parseAssignmentExpression(context);
     663            failIfFalse(!!initializer, "Unable to parse initializer");
    663664        }
    664665        tail = context.appendConstDecl(location, tail, name, initializer);
Note: See TracChangeset for help on using the changeset viewer.