clean up scope-related variables (#4179)

This commit is contained in:
Alex Lam S.L
2020-10-04 23:56:52 +01:00
committed by GitHub
parent 8f0521d51d
commit 220dc95c0d
3 changed files with 29 additions and 15 deletions

View File

@@ -6778,7 +6778,7 @@ merge(Compressor.prototype, {
if (self.args.length == 0) return make_node(AST_Function, self, {
argnames: [],
body: []
}).init_scope_vars(exp.scope);
}).init_vars(exp.scope);
if (all(self.args, function(x) {
return x instanceof AST_String;
})) {
@@ -9071,7 +9071,7 @@ merge(Compressor.prototype, {
self.expression = make_node(AST_Function, self.expression, {
argnames: [],
body: []
}).init_scope_vars(exp.scope);
}).init_vars(exp.scope);
break;
case "Number":
self.expression = make_node(AST_Number, self.expression, {