google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.17k stars 580 forks source link

question about let #2042

Open handoing opened 8 years ago

handoing commented 8 years ago

for (let i = 0; i < 10; i++) {} console.log(i);

should show: //ReferenceError: i is not defined

but traceur output 10

arv commented 8 years ago

Not sure when this stopped working. I thought we even had tests for this.

arv commented 8 years ago

There is also the --free-variable-checker option which does catch this but we should have renamed one of the is in the test case.