fix corner case in reduce_vars (#4219)

fixes #4218
This commit is contained in:
Alex Lam S.L
2020-10-14 00:58:04 +01:00
committed by GitHub
parent 9f8106e1d8
commit 7f35d9cee0
2 changed files with 25 additions and 0 deletions

View File

@@ -993,6 +993,7 @@ merge(Compressor.prototype, {
return node.value;
};
d.fixed.assigns = [ node ];
if (node.name instanceof AST_SymbolConst && d.redefined()) d.single_use = false;
} else {
d.fixed = false;
}