Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/try-catch-within-object-method.js
T
2026-08-27 21:09:14 +00:00

18 lines
244 B
JavaScript

function Component(props) {
const object = {
foo() {
try {
return [];
} catch (e) {
return;
}
},
};
return object.foo();
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
};