retrofit AST_BlockStatement as block-scoped (#4177)

This commit is contained in:
Alex Lam S.L
2020-10-04 18:58:50 +01:00
committed by GitHub
parent 58ac5b9bd5
commit f9946767c9
6 changed files with 104 additions and 59 deletions

View File

@@ -466,7 +466,7 @@ issue_4112: {
var o = e;
for (e in o);
var a = function() {};
console.log;
console.log(typeof a);
return a;
}
}());
@@ -479,12 +479,15 @@ issue_4112: {
var a = e;
for (e in a);
a = function() {};
console.log;
console.log(typeof a);
return a;
}
}());
}
expect_stdout: "function"
expect_stdout: [
"function",
"function",
]
}
issue_4115: {