fix corner case in inline (#5270)

fixes #5269
This commit is contained in:
Alex Lam S.L
2022-01-07 05:22:16 +00:00
committed by GitHub
parent 10a1523ee6
commit 9aab1f3661
2 changed files with 217 additions and 0 deletions

View File

@@ -13048,6 +13048,7 @@ Compressor.prototype.compress = function(node) {
return true;
})) return;
var sym = def.orig[0];
if (sym instanceof AST_SymbolCatch) return;
var ref = make_node(AST_SymbolRef, sym, flatten_var(sym));
ref.definition().references.push(ref);
body.push(make_node(AST_SimpleStatement, sym, {