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
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
2 matches
Mail list logo