Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/object-expression-captures-function-with-global-mutation.js
T
2026-08-27 21:09:14 +00:00

13 lines
175 B
JavaScript

function Foo() {
const x = () => {
window.href = 'foo';
};
const y = {x};
return <Bar y={y} />;
}
export const FIXTURE_ENTRYPOINT = {
fn: Foo,
params: [],
};