google / traceur-compiler

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

`void 0 in` in nested for loop #1951

Closed muzuiget closed 8 years ago

muzuiget commented 9 years ago

Similar #1647

for (let a of [1,2,3]) {
  for (let b in {x:1}) {
    console.log(b);
  }
}

The nested for will become

for (var b = void 0 in {x: 1}) {
    console.log(b);
}

It can reproduce on http://google.github.io/traceur-compiler/demo/repl.html