fix corner case in inline (#5760)

fixes #5759
This commit is contained in:
Alex Lam S.L
2022-12-07 05:40:12 +02:00
committed by GitHub
parent 17c3ae6cba
commit dd88f3866b
2 changed files with 45 additions and 0 deletions

View File

@@ -14076,6 +14076,7 @@ Compressor.prototype.compress = function(node) {
var sym = def.orig[0];
if (sym instanceof AST_SymbolCatch) return;
body.push(make_node(AST_SimpleStatement, sym, { body: init_ref(compressor, flatten_var(sym)) }));
def.first_decl = null;
});
var defs = Object.create(null), syms = new Dictionary();
if (simple_argnames && all(call.args, function(arg) {