aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-04-30 14:52:57 +0100
committerGitHub <noreply@github.com>2020-04-30 21:52:57 +0800
commitd90000697320fa6ffeea80b77dca9d6cd32d2127 (patch)
tree8e2b80afadf8102828d98d2d8e335522408726eb /lib
parent39f849590bfa4d60e4cc7494d5b370f3cbcc78af (diff)
downloadtracifyjs-d90000697320fa6ffeea80b77dca9d6cd32d2127.tar.gz
tracifyjs-d90000697320fa6ffeea80b77dca9d6cd32d2127.zip
fix corner case in `dead_code` (#3831)
fixes #3830
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 8eb684d3..c679a8b2 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -7532,6 +7532,7 @@ merge(Compressor.prototype, {
node = parent;
parent = compressor.parent(level++);
if (parent instanceof AST_Assign) {
+ if (parent.left instanceof AST_PropAccess) break;
if (!(parent.left instanceof AST_SymbolRef)) continue;
if (parent.left.definition() !== def) continue;
if (in_try(level, parent)) break;