aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-02-04 03:58:49 +0800
committerGitHub <noreply@github.com>2018-02-04 03:58:49 +0800
commit78a44d5ab0fd2195c8f22cc8a39193b33dad6188 (patch)
tree83a542c49bea4577d66f400102dfe4da8676ba7a /lib/compress.js
parent7e13c0db4034d2c28e36473a3add915de1813844 (diff)
downloadtracifyjs-78a44d5ab0fd2195c8f22cc8a39193b33dad6188.tar.gz
tracifyjs-78a44d5ab0fd2195c8f22cc8a39193b33dad6188.zip
maintain order between side-effects and externally observable assignments (#2879)
fixes #2878
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 993092a0..f9cd7a41 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -1040,7 +1040,6 @@ merge(Compressor.prototype, {
|| node instanceof AST_PropAccess
&& (side_effects || node.expression.may_throw_on_access(compressor))
|| node instanceof AST_SymbolRef
- && !(parent instanceof AST_Assign && parent.operator == "=" && parent.left === node)
&& (lvalues[node.name] || side_effects && may_modify(node))
|| node instanceof AST_VarDef && node.value
&& (node.name.name in lvalues || side_effects && may_modify(node.name))