fix AST_Function scope invariance (#2052)

improve function name hack in `run_code()`
This commit is contained in:
Alex Lam S.L
2017-06-04 19:27:43 +08:00
committed by GitHub
parent 84634da4b5
commit 540220b91b
4 changed files with 44 additions and 13 deletions

View File

@@ -751,12 +751,12 @@ issue_1583: {
expect: {
function m(t) {
(function(e) {
t = (function() {
return (function(a) {
return a;
})(function(a) {});
})();
})();
t = e();
})(function() {
return (function(a) {
return a;
})(function(a) {});
});
}
}
}