diff options
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js index 5ea5d00b..bffb6f74 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -3403,6 +3403,12 @@ merge(Compressor.prototype, { var inner_scopes = []; self.walk(new TreeWalker(function(node, descend) { if (!result) return true; + if (node instanceof AST_Catch) { + inner_scopes.push(node.argname.scope); + descend(); + inner_scopes.pop(); + return true; + } if (node instanceof AST_Scope && node !== self) { inner_scopes.push(node); descend(); |