enhance inline

This commit is contained in:
alexlamsl 2024-06-30 03:20:59 +03:00
parent 6b23899ef3
commit 5c8144314b

View File

@ -14250,11 +14250,12 @@ Compressor.prototype.compress = function(node) {
stat.walk(new TreeWalker(function(node) { stat.walk(new TreeWalker(function(node) {
if (abort) return true; if (abort) return true;
if (node instanceof AST_Try) { if (node instanceof AST_Try) {
if (node.bfinally && all(node.body, function(stat) { if (!node.bfinally) return;
if (all(node.body, function(stat) {
stat.walk(find_return); stat.walk(find_return);
return !abort; return !abort;
}) && node.bcatch) node.bcatch.walk(find_return); }) && node.bcatch) node.bcatch.walk(find_return);
return; return true;
} }
if (node instanceof AST_Scope) return true; if (node instanceof AST_Scope) return true;
})); }));