account for catch in constant lambda expressions
This commit is contained in:
parent
931ac66638
commit
b9614b491f
|
|
@ -3403,6 +3403,12 @@ merge(Compressor.prototype, {
|
||||||
var inner_scopes = [];
|
var inner_scopes = [];
|
||||||
self.walk(new TreeWalker(function(node, descend) {
|
self.walk(new TreeWalker(function(node, descend) {
|
||||||
if (!result) return true;
|
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) {
|
if (node instanceof AST_Scope && node !== self) {
|
||||||
inner_scopes.push(node);
|
inner_scopes.push(node);
|
||||||
descend();
|
descend();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user