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

18 lines
308 B
JavaScript

// @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} />;
}
} finally {
console.log(el);
}
return el;
}