diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-01-07 19:34:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 19:34:16 +0800 |
commit | 4d6771b9b1d89f0b49625795a92267d6e59dd064 (patch) | |
tree | a7c310734d1bdc81bc4a3836b133b6e554c29411 /lib | |
parent | d17191111a24988195c364ccf7b71251440175ee (diff) | |
download | tracifyjs-4d6771b9b1d89f0b49625795a92267d6e59dd064.tar.gz tracifyjs-4d6771b9b1d89f0b49625795a92267d6e59dd064.zip |
fix corner case in `collapse_vars` (#3672)
fixes #3671
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 7e55da5a..03587359 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1367,7 +1367,7 @@ merge(Compressor.prototype, { if (replace_all) return false; return node instanceof AST_SymbolRef && !node.is_declared(compressor) - && !(parent instanceof AST_Assign && parent.left === node); + && !(parent instanceof AST_Assign && parent.operator == "=" && parent.left === node); } function in_conditional(node, parent) { |