babel/test/fixtures/traceur/Scope/Error_ForInWithInitializerVar.js
2015-01-04 19:40:09 +11:00

11 lines
159 B
JavaScript

// Options: --block-binding
// Error: :7:22: Unexpected token in
var x = 0;
// ES6 does not allow this.
for (var i = (x = 1) in {}) {
}
assert.equal(1, x);