fix corner case in reduce_vars (#5062)

fixes #5061
This commit is contained in:
Alex Lam S.L
2021-07-08 09:31:04 +01:00
committed by GitHub
parent 6577d641ac
commit ea7829daf5
2 changed files with 53 additions and 0 deletions

View File

@@ -889,6 +889,7 @@ merge(Compressor.prototype, {
} else {
right.parent_scope.resolve().fn_defs.push(right);
right.safe_ids = null;
if (!node.write_only) mark_fn_def(tw, ld, right);
}
return true;
} else if (scan) {