make scope tracker more reliable to handle all edgecases

This commit is contained in:
Sebastian McKenzie
2014-11-14 23:13:58 +11:00
parent e5a8c95b62
commit 37f360c72d
5 changed files with 70 additions and 20 deletions

View File

@@ -0,0 +1,5 @@
let x = [0];
for (let x of x) {
assert.equal(x, 0);
}
assert.deepEqual(x, [0]);