Open handoing opened 8 years ago
for (let i = 0; i < 10; i++) {} console.log(i);
should show: //ReferenceError: i is not defined
but traceur output 10
Not sure when this stopped working. I thought we even had tests for this.
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.
--free-variable-checker
i
for (let i = 0; i < 10; i++) {} console.log(i);
should show: //ReferenceError: i is not defined
but traceur output 10