Skip to content

Commit

Permalink
enhance inline (#5871)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl authored Jun 30, 2024
1 parent 6b23899 commit 787dfbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/compress.js
Original file line number Diff line number Diff line change
Expand Up @@ -14250,11 +14250,12 @@ Compressor.prototype.compress = function(node) {
stat.walk(new TreeWalker(function(node) {
if (abort) return true;
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);
return !abort;
}) && node.bcatch) node.bcatch.walk(find_return);
return;
return true;
}
if (node instanceof AST_Scope) return true;
}));
Expand Down

0 comments on commit 787dfbe

Please sign in to comment.