fix for-head duplication testing and replacement - fixes #162

This commit is contained in:
Sebastian McKenzie
2014-11-15 02:50:05 +11:00
parent 58fac2e2be
commit 85c2de57e4
4 changed files with 42 additions and 11 deletions

View File

@@ -0,0 +1,6 @@
let x = 1;
{
let x = 2;
assert.equal(x, 2);
}
assert.equal(x, 1);

View File

@@ -0,0 +1,5 @@
assert.equal((function(){
let a = 1;
for (let a = 0; a < 8; a++) {}
return a;
}()), 1);