enhance evaluate & reduce_vars (#3873)

This commit is contained in:
Alex Lam S.L
2020-05-10 20:08:05 +01:00
committed by GitHub
parent 7e0ad232b0
commit e23bf48052
4 changed files with 188 additions and 67 deletions

View File

@@ -3514,10 +3514,9 @@ hoisted_single_use: {
}
expect: {
function f(a) {
for (var r in a) g(r);
}
function g(a) {
console.log(a);
for (var r in a) (function(a) {
console.log(a);
})(r);
}
(function(a) {
var g = a.bar;