aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-02-13 18:24:57 +0000
committerGitHub <noreply@github.com>2021-02-14 02:24:57 +0800
commita6bb66931bfdd04d6ce05b640d89a8deff7ca3de (patch)
tree27f9d8b8b4d04ebab385bdd7f7f60b18422eeae1 /lib/compress.js
parent766742e1d35027a3ef4a99115c3fc9fabd212537 (diff)
downloadtracifyjs-a6bb66931bfdd04d6ce05b640d89a8deff7ca3de.tar.gz
tracifyjs-a6bb66931bfdd04d6ce05b640d89a8deff7ca3de.zip
improve fix for #4325 (#4649)
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 38d25b15..7e113ecc 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -7003,6 +7003,8 @@ merge(Compressor.prototype, {
// always shallow clone to ensure stripping of negated IIFEs
self = self.clone();
self.expression = exp.clone();
+ // avoid extraneous traversal
+ if (exp._squeezed) self.expression._squeezed = true;
}
if (self instanceof AST_New) {
var fn = exp;