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

16 lines
299 B
JavaScript

function hoisting() {
function bar() {
return x;
}
return baz(); // OK: FuncDecls are HoistableDeclarations that have both declaration and value hoisting
function baz() {
return bar();
}
}
export const FIXTURE_ENTRYPOINT = {
fn: hoisting,
params: [],
isComponent: false,
};