aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js
index eb359df9..249b551a 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -7670,6 +7670,11 @@ merge(Compressor.prototype, {
if (is_reachable(scope, [ def ])) break;
def.fixed = false;
return strip_assignment();
+ } else if (parent instanceof AST_VarDef) {
+ if (parent.name.definition() !== def) continue;
+ if (in_try(level, parent)) break;
+ def.fixed = false;
+ return strip_assignment();
}
} while (parent instanceof AST_Binary && parent.right === node
|| parent instanceof AST_Sequence && parent.tail_node() === node