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
var _temporalAssertDefined = function (val, name, undef) { if (val === undef) { throw new ReferenceError(name + " is not defined - temporal dead zone"); } return true; };
var _temporalUndefined = {};
var data = _temporalUndefined;
var key = _temporalUndefined;
data = {};
key = undefined;
for (_temporalAssertDefined(key, "key", _temporalUndefined) && key in _temporalAssertDefined(data, "data", _temporalUndefined) && data) {}
Seems to be because the let key; is outside the for loop and used as a key.
The text was updated successfully, but these errors were encountered:
loganfsmyth
changed the title
TDZ transformer for for...in creates invalid JS
es6.blockScopingTDZ creates invalid JS for for...in loop
Mar 24, 2015
becomes
Seems to be because the
let key;
is outside the for loop and used as a key.The text was updated successfully, but these errors were encountered: