diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-10-23 01:04:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-23 01:04:00 +0800 |
commit | a53ab9937835f795c4714e981d10249e7829d2d4 (patch) | |
tree | a65b27d0c5255643fa0fecdd59a8cba86f1455f1 /lib | |
parent | 02308a7b5651ce04703fafc43887636642c5e888 (diff) | |
download | tracifyjs-a53ab9937835f795c4714e981d10249e7829d2d4.tar.gz tracifyjs-a53ab9937835f795c4714e981d10249e7829d2d4.zip |
fix corner case in `side_effects` (#3514)
fixes #3512
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 2b61e91c..a8bf0d9d 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -4196,7 +4196,7 @@ merge(Compressor.prototype, { var left = this.left; if (left instanceof AST_PropAccess) { var expr = left.expression; - if (expr instanceof AST_Assign && !expr.may_throw_on_access(compressor)) { + if (expr instanceof AST_Assign && expr.operator == "=" && !expr.may_throw_on_access(compressor)) { expr.write_only = "p"; } if (compressor.has_directive("use strict") && expr.is_constant()) return this; |