-
oliver@apple.com authored
Reviewed by Sam Weinig. [jsfunfuzz] Parser doesn't correctly validate for-loop syntax https://bugs.webkit.org/show_bug.cgi?id=52516 Add test for the case where a syntax error immediately follows multiple declarations in a for-loop initialiser. * fast/js/parser-syntax-check-expected.txt: * fast/js/script-tests/parser-syntax-check.js: 2011-01-16 Oliver Hunt <oliver@apple.com> Reviewed by Sam Weinig. [jsfunfuzz] Parser doesn't correctly validate for-loop syntax https://bugs.webkit.org/show_bug.cgi?id=52516 Ensure that we always check for a semicolon after encountering multiple declarations in the initialiser portion of a for-loop. * parser/JSParser.cpp: (JSC::JSParser::parseForStatement): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75899 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3e7b1a63