Add failing test
This commit is contained in:
parent
65dc981ce9
commit
ea0e55c5af
@ -0,0 +1,6 @@
|
||||
for (let i = 0; i < 5; i++) {
|
||||
const l = i;
|
||||
setTimeout(function() {
|
||||
console.log(l);
|
||||
}, 1);
|
||||
}
|
||||
10
packages/babel-core/test/fixtures/transformation/es6.block-scoping/for-const-closure/expected.js
vendored
Normal file
10
packages/babel-core/test/fixtures/transformation/es6.block-scoping/for-const-closure/expected.js
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
var _loop = function _loop(i) {
|
||||
var l = i;
|
||||
setTimeout(function () {
|
||||
console.log(l);
|
||||
}, 1);
|
||||
};
|
||||
|
||||
for (var i = 0; i < 5; i++) {
|
||||
_loop(i);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user