Skip to content
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

the transform of let in the for loop have problem #9664

Gjb7598189 opened this Issue Mar 12, 2019 · 1 comment


None yet
2 participants
Copy link

Gjb7598189 commented Mar 12, 2019

// transform before:

for (let i = 0; i < 3; i++) {
  let i = 'abc';
  console.log(i); // three time 'abc'

// transform after:

for (var i = 0; i < 3; i++) {
  var i = 'abc';
  console.log(i); // one time 'abc'

but, Their behavior is different


This comment has been minimized.

Copy link

nicolo-ribaudo commented Mar 12, 2019

Didn't GitHub show you an issue template to provide all the required info? (i.e. wasn't there already something in the issue form?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.