Files
oxc-project__oxc/crates/oxc_react_compiler/fixtures/try-catch-local-captured-by-nested-arrow.js
Boshen 0dc16ba3a0 fix(react_compiler): track catch block declarations (#25067)
Tracks declarations introduced by catch bindings in React Compiler HIR.

AI-assisted.
2026-07-29 12:29:08 +00:00

16 lines
302 B
JavaScript

function Component({nodes}) {
try {
doSomething();
} catch {
const paragraphNode = createParagraphNode();
nodes.forEach(node => paragraphNode.append(node));
return paragraphNode;
}
return null;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{nodes: []}],
};