Changeset 162006 in webkit


Ignore:
Timestamp:
Jan 14, 2014 2:11:43 PM (10 years ago)
Author:
mark.lam@apple.com
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
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r162002 r162006  
     12014-01-14  Mark Lam  <mark.lam@apple.com>
     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        * js/dom/parse-syntax-error-in-initializer-expected.txt: Added.
     9        * js/dom/parse-syntax-error-in-initializer.html: Added.
     10        * js/resources/parse-syntax-error-in-initializer.js: Added.
     11        - Added bug test case as a regression test.
     12
    1132014-01-14  Roger Fong  <roger_fong@apple.com>
    214
  • trunk/Source/JavaScriptCore/ChangeLog

    r161994 r162006  
     12014-01-14  Mark Lam  <mark.lam@apple.com>
     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  <pecoraro@apple.com>
    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.