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

17 lines
219 B
JavaScript

import {print} from 'shared-runtime';
function hoisting(cond) {
if (cond) {
const x = 1;
print(x);
}
const x = 2;
print(x);
}
export const FIXTURE_ENTRYPOINT = {
fn: hoisting,
params: [false],
};