aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-06-08 17:09:21 +0100
committerGitHub <noreply@github.com>2020-06-09 00:09:21 +0800
commit5561d3e7f3252837ac3b85401f2403937860da46 (patch)
tree5e55b19e83e45ad990a6f2da3e5994d7d1dc592a /lib/compress.js
parent491d6ce1d5f8e49730de25788cabf9e213470588 (diff)
downloadtracifyjs-5561d3e7f3252837ac3b85401f2403937860da46.tar.gz
tracifyjs-5561d3e7f3252837ac3b85401f2403937860da46.zip
fix corner case in `collapse_vars` (#3972)
fixes #3971
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index a56e9331..d82c8124 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -1258,7 +1258,7 @@ merge(Compressor.prototype, {
col: node.start.col
});
if (candidate instanceof AST_UnaryPostfix) {
- delete candidate.expression.fixed;
+ lhs.definition().fixed = false;
return make_node(AST_UnaryPrefix, candidate, candidate);
}
if (candidate instanceof AST_VarDef) {