Reinstate intialiser syntax in for-in loops
https://bugs.webkit.org/show_bug.cgi?id=130269

Reviewed by Michael Saboff.

Source/JavaScriptCore:

Disallowing the initialiser broke some sites so this patch re-allows
the syntax.  We still disallow the syntax in 'of' and pattern based
enumeration.

* parser/ASTBuilder.h:
(JSC::ASTBuilder::isBindingNode):
* parser/Parser.cpp:
(JSC::Parser<LexerType>::parseVarDeclarationList):
(JSC::Parser<LexerType>::parseForStatement):
* parser/SyntaxChecker.h:
(JSC::SyntaxChecker::operatorStackPop):

LayoutTests:

Update and add test.

* js/parser-syntax-check-expected.txt:
* js/script-tests/parser-syntax-check.js:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165682 268f45cc-cd09-0410-ab3c-d52691b4dbfc