Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/invalid-jsx-in-catch-in-outer-try-with-catch.js
2026-08-27 21:09:14 +00:00

18 lines
318 B
JavaScript

// @loggerTestOnly @validateNoJSXInTryStatements @outputMode:"lint"
import {identity} from 'shared-runtime';
function Component(props) {
let el;
try {
let value;
try {
value = identity(props.foo);
} catch {
el = <div value={value} />;
}
} catch {
return null;
}
return el;
}