mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
0dc16ba3a0
Tracks declarations introduced by catch bindings in React Compiler HIR. AI-assisted.
16 lines
302 B
JavaScript
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: []}],
|
|
};
|