-
mark.lam@apple.com authored
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. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162006 268f45cc-cd09-0410-ab3c-d52691b4dbfc
bd96029c