fix corner case in inline & unused (#5725)

fixes #5724
This commit is contained in:
Alex Lam S.L
2022-10-29 03:53:30 +01:00
committed by GitHub
parent 7270671687
commit f40dbd6e33
3 changed files with 56 additions and 22 deletions

View File

@@ -364,7 +364,7 @@ Compressor.prototype.compress = function(node) {
expression: make_node(AST_Function, self, {
argnames: [],
body: self.body,
}).init_vars(self),
}).init_vars(self, self),
args: [],
});
}
@@ -8963,7 +8963,7 @@ Compressor.prototype.compress = function(node) {
argnames: [],
body: [],
value: make_value(),
}).init_vars(self.parent_scope),
}).init_vars(self.parent_scope, self),
args: [],
}));
return make_sequence(self, exprs);