fix transformation let scoping hoisting test
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
for (var _iterator = [1, 2, 3][Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
|
||||
var i = _step.value;
|
||||
var x;
|
||||
(function (i) {
|
||||
(function () {
|
||||
var i = _step.value;
|
||||
x = 5;
|
||||
fns.push(function () {
|
||||
return i * x;
|
||||
});
|
||||
})(i);
|
||||
})();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user