New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let + for-of does not respect scoping #159
Comments
Odd. This should be working, I'll investigate shortly. |
This seems to transform correctly. function foo() {
var x = [0]
for (let x of x) {
console.log(x)
}
console.log(x)
}
foo(); Looks like a pretty serious bug I'll have to track down. |
@sebmck the example you just posted doesn't work for me, unless you are saying that you have just made fixes so it does (I'm using 1.12.10) |
@monsanto I must have inadvertently fixed it kinda-ish when debugging. I'll have to write a lot more let scoping tests, Traceur's coverage doesn't seem to be enough. |
Looks like it's an issue with the scope tracking not tracking node position changes. |
Thanks! Fixed as of 1.12.12 |
Minimal example:
The text was updated successfully, but these errors were encountered: