« Bugzilla Issues Index

#1163 — RHS of for-of should be AssignmentExpression

The right-hand side of a for-of loop should be an AssignmentExpression. This future-proofs for simultaneous iteration such as:

(It's also what people agreed to for paren-free comprehensions, although I am arguing for left-to-right comprehensions, which are not paren-free.)


fixed in rev 14 editor's draft

in Rev 14 draft