enhance inline (#5871)

This commit is contained in:
Alex Lam S.L
2024-06-30 14:00:05 +03:00
committed by GitHub
parent 6b23899ef3
commit 787dfbed64

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;
})); }));