refactor(minifier): remove old code for folding expressions to throw/return (#25974)
drop dead code related to folding expressions to throw/return as is no longer can be executed this code is no longer executed and its a duplication of `handle_throw_statement` and `handle_return_statement` we process all stmts first, and after that we try to process them again, even if everything should be join't already, beside normal check, i'v tried to execute this code on bunch of codebases / all tests cases and its truly dead, we may want to move logic used for IF's also to `handle_return_statement` and `handle_throw_statement` originally this was added before handle_throw_statement and handle_return_statement was a thing and its part of initial setup https://github.com/oxc-project/oxc/blob/b016fd41101de5038a77484c11c0a19c1aa965a9/crates/oxc_minifier/src/peephole/minimize_statements.rs#L947-L956 https://github.com/oxc-project/oxc/blob/b016fd41101de5038a77484c11c0a19c1aa965a9/crates/oxc_minifier/src/peephole/minimize_statements.rs#L972-L981
A
Armano committed
30e612dd73f535f5a0588f9fd0afdd3b904b0960
Parent: a0aee81
Committed by GitHub <noreply@github.com>
on 8/23/2026, 1:53:41 AM