aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-01-19 01:33:57 +0000
committerGitHub <noreply@github.com>2021-01-19 09:33:57 +0800
commit90ec46824063450d88e04235df276a89e7025b77 (patch)
treeefe23fbe1a8b249abe28f358a8758fb9c5a3c0c1 /lib
parent994293e97229110f676dc72ad68b6b2d8a015394 (diff)
downloadtracifyjs-90ec46824063450d88e04235df276a89e7025b77.tar.gz
tracifyjs-90ec46824063450d88e04235df276a89e7025b77.zip
fix corner case in `dead_code` (#4571)
fixes #4570
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index e33f4f3f..21072f0c 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -9987,7 +9987,7 @@ merge(Compressor.prototype, {
var scope = def.scope.resolve();
var local = scope === compressor.find_parent(AST_Lambda);
var level = 0, node;
- parent = self;
+ parent = compressor.self();
do {
node = parent;
parent = compressor.parent(level++);