add traceur test suite
This commit is contained in:
10
test/fixtures/traceur/Scope/Error_ForInWithInitializerVar.js
vendored
Normal file
10
test/fixtures/traceur/Scope/Error_ForInWithInitializerVar.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// 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);
|
||||
Reference in New Issue
Block a user