Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/hoisting-nested-const-declaration-2.js
2026-08-27 21:09:14 +00:00

18 lines
271 B
JavaScript

function hoisting(cond) {
let items = [];
if (cond) {
const foo = () => {
items.push(bar());
};
const bar = () => true;
foo();
}
return items;
}
export const FIXTURE_ENTRYPOINT = {
fn: hoisting,
params: [true],
isComponent: false,
};