strange bug
kobezzza opened this issue · 3 comments
kobezzza commented
source:
var arr = [1, 2, 3];
var i = 0;
for (let i = 0; i < arr.length; i++) {
arr[i];
}
result:
var arr = [1, 2, 3];
var i = 0;
for (var i$0 = 0; i$0 < arr.length; i$0++) {
arr[i]; // <- Error, must be i$0
}
olov commented
Thanks for the test case - may I add it to the test suite? I'll fix this tonight.
kobezzza commented
It would be great! Thanks!
olov commented
Thanks for reporting, will push a new release to npm soon.