remap head variables when a closure is required in blockScoping transformer - fixes #763

This commit is contained in:
Sebastian McKenzie
2015-02-14 20:21:34 +11:00
parent e1151e08c9
commit 2a2dff0eaf
2 changed files with 31 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
for (let i = 1; i < 3; i += 1) {
(function () {
i;
})();
}
assert.throws(function () {
i;
}, ReferenceError);