fix corner case in inline (#5238)

fixes #5237
This commit is contained in:
Alex Lam S.L
2021-12-25 19:30:49 +08:00
committed by GitHub
parent 13d41778b3
commit e1013bd56d
2 changed files with 32 additions and 1 deletions

View File

@@ -12818,7 +12818,6 @@ Compressor.prototype.compress = function(node) {
left: make_node(AST_Number, node, { value: 0 }),
right: make_node(AST_Number, node, { value: 0 }),
});
if (node instanceof AST_Scope && node !== scope) return node;
}));
var body = [];
if (fn.rest || !all(fn.argnames, function(argname) {