fix duplicate let scoping in functions - fixes #166

This commit is contained in:
Sebastian McKenzie
2014-11-15 09:47:48 +11:00
parent c9d9a085f1
commit 7a261a1db1
3 changed files with 17 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
function test () {
let value = "outer";
return (function () {
let value = "inner";
return value;
})();
}
assert(test(), "inner");