13.6.4.12 Runtime Semantics: ForIn/OfHeadEvaluation ( TDZnames, expr, iterationKind, labelSet)

2015-05-13 Thread Axel Rauschmayer
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-runtime-semantics-forin-div-ofheadevaluation-tdznames-expr-iterationkind-labelset https://people.mozilla.org/~jorendorff/es6-draft.html#sec-runtime-semantics-forin-div-ofheadevaluation-tdznames-expr-iterationkind-labelset I don’t

Re: 13.6.4.12 Runtime Semantics: ForIn/OfHeadEvaluation ( TDZnames, expr,iterationKind, labelSet)

2015-05-13 Thread allen
It makes things like this:   let x=0; for (let x of (x=2, obj) {...}   produce an error.   Essentially it is creating a TDZ for 'x' that spans the of expression. It doesn 't make a difference whether the TDZ binding for x is mutable or immutable because the binding is never initialized so any