shapesecurity / shift-parser-js

ECMAScript parser that produces a Shift format AST
http://shift-ast.org/parser.html
Apache License 2.0
249 stars 28 forks source link

RHS of a for-in may not be a comma expression #310

Closed bakkot closed 7 years ago

bakkot commented 7 years ago

i.e. this should not be accepted:

var x;
for (x in [], []) {}

likewise for for-of.