Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/unlabeled-break-within-label-loop.ts
T
2026-08-27 21:09:14 +00:00

20 lines
310 B
TypeScript

function useHook(end) {
const log = [];
for (let i = 0; i < end + 1; i++) {
log.push(`${i} @A`);
bb0: {
if (i === end) {
break;
}
log.push(`${i} @B`);
}
log.push(`${i} @C`);
}
return log;
}
export const FIXTURE_ENTRYPOINT = {
fn: useHook,
params: [1],
};