-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for (let a = b => b in c; ;); #838
Comments
This example is a syntax error because the binding cannot have an initialization. Web compat / AnnexB does allow for inits for https://tc39.es/ecma262/#sec-iteration-statements |
Should be solved by attached patch. |
The following code:
produces a SyntaxError in Node/Chrome/Firefox, as it is viewed as an invalid for-in loop.
However, it's a valid ForStatement in Acorn, so there is a difference. I'm not sure who is right.
The text was updated successfully, but these errors were encountered: