diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js index 64c654dd..3c0fc452 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1896,8 +1896,7 @@ merge(Compressor.prototype, { if (def.value) def.value = def.value.transform(tt); var sym = def.name.definition(); if (sym.id in in_use_ids) return true; - if (sym.orig[0] instanceof AST_SymbolCatch - && sym.scope.parent_scope.find_variable(def.name).orig[0] === def.name) { + if (sym.orig[0] instanceof AST_SymbolCatch) { def.value = def.value && def.value.drop_side_effect_free(compressor); return true; } |