-
oliver@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=123506 Reviewed by Mark Lam. Source/JavaScriptCore: Add ParserState as an abstraction and use that to save and restore the parser state around nested functions (We'll need to use this in more places in future). Also fix a minor error typo this testcases hit. * parser/Parser.cpp: (JSC::::parseFunctionInfo): (JSC::::parseAssignmentExpression): * parser/Parser.h: (JSC::Parser::saveState): (JSC::Parser::restoreState): LayoutTests: Update and add tests * js/dom/assign-expected.txt: * js/function-toString-parentheses-expected.txt: * js/parser-syntax-check-expected.txt: * js/script-tests/parser-syntax-check.js: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158425 268f45cc-cd09-0410-ab3c-d52691b4dbfc
5d2b0bb2