@@ -1090,7 +1090,7 @@ merge(Compressor.prototype, {
|
||||
scope = node;
|
||||
break;
|
||||
} else if (node instanceof AST_Try) {
|
||||
in_try = true;
|
||||
in_try = node;
|
||||
}
|
||||
} while (node = compressor.parent(level++));
|
||||
}
|
||||
@@ -1321,6 +1321,10 @@ merge(Compressor.prototype, {
|
||||
function is_last_node(node, parent) {
|
||||
if (node instanceof AST_Call) return true;
|
||||
if (node instanceof AST_Exit) {
|
||||
if (in_try) {
|
||||
if (in_try.bfinally) return true;
|
||||
if (in_try.bcatch && node instanceof AST_Throw) return true;
|
||||
}
|
||||
return side_effects || lhs instanceof AST_PropAccess || may_modify(lhs);
|
||||
}
|
||||
if (node instanceof AST_Function) {
|
||||
|
||||
Reference in New Issue
Block a user