Changeset 162006 in webkit for trunk/Source/JavaScriptCore


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.
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r161994 r162006  
     12014-01-14  Mark Lam  <[email protected]>
     2
     3        ASSERTION FAILED: !hasError() in JSC::Parser<LexerType>::createSavePoint().
     4        https://bugs.webkit.org/show_bug.cgi?id=126990.
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        * parser/Parser.cpp:
     9        (JSC::Parser<LexerType>::parseConstDeclarationList):
     10        - We were missing an error check after attempting to parse an initializer
     11          expression. This is now fixed.
     12
    1132014-01-14  Joseph Pecoraro  <[email protected]>
    214
  • 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.