@@ -1815,7 +1815,11 @@ merge(Compressor.prototype, {
|
||||
var node = compressor.self(), level = 0;
|
||||
do {
|
||||
if (node instanceof AST_Catch) {
|
||||
if (!compressor.parent(level).bfinally) level++;
|
||||
if (compressor.parent(level).bfinally) {
|
||||
if (!in_try) in_try = {};
|
||||
in_try.bfinally = true;
|
||||
}
|
||||
level++;
|
||||
} else if (node instanceof AST_Finally) {
|
||||
level++;
|
||||
} else if (node instanceof AST_IterationStatement) {
|
||||
@@ -1824,7 +1828,9 @@ merge(Compressor.prototype, {
|
||||
scope = node;
|
||||
break;
|
||||
} else if (node instanceof AST_Try) {
|
||||
if (!in_try) in_try = node;
|
||||
if (!in_try) in_try = {};
|
||||
if (node.bcatch) in_try.bcatch = true;
|
||||
if (node.bfinally) in_try.bfinally = true;
|
||||
}
|
||||
} while (node = compressor.parent(level++));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user