You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for(constainb,c);// OK. ForInStatement#right is Expression production which contains comma operator.for(constaofb,c);// ERROR. ForOfStatement#right is AssignmentExpression production which doesn't contain comma operator.
IterationExpression
for ( ForDeclaration in Expression ) Statement
for ( ForDeclaration of AssignmentExpression ) Statement
I expected the following code to throw a syntax error, but not: http://astexplorer.net/#/gist/0c38e7492bcdef3ade0b04fb93f0474d/c8c7a744abbece46d49c172fb6287f0bfa54da2a
The text was updated successfully, but these errors were encountered: