fix corner case in inline (#5415)

fixes #5414
This commit is contained in:
Alex Lam S.L
2022-04-12 23:19:37 +01:00
committed by GitHub
parent 4a44d95f09
commit 950609f578
2 changed files with 55 additions and 1 deletions

View File

@@ -13382,7 +13382,7 @@ Compressor.prototype.compress = function(node) {
});
var body = [];
fn.variables.each(function(def, name) {
if (name == "arguments") return;
if (!arrow && name == "arguments" && def.orig.length == 1) return;
names.set(name, true);
scope.enclosed.push(def);
scope.variables.set(name, def);