fix corner case in reduce_vars (#4796)

This commit is contained in:
Alex Lam S.L
2021-03-17 21:14:14 +00:00
committed by GitHub
parent d4303b62cc
commit d837a46ebd
2 changed files with 26 additions and 0 deletions

View File

@@ -624,6 +624,7 @@ merge(Compressor.prototype, {
if (parent instanceof AST_Binary) return lazy_op[parent.operator];
if (parent instanceof AST_Conditional) return parent.condition !== node;
if (parent instanceof AST_Sequence) return parent.tail_node() === node;
if (parent instanceof AST_Spread) return true;
}
function mark_escaped(tw, d, scope, node, value, level, depth) {