main
js 17 lines 271 Bytes
Raw
1 function hoisting(cond) {
2 let items = [];
3 if (cond) {
4 const foo = () => {
5 items.push(bar());
6 };
7 const bar = () => true;
8 foo();
9 }
10 return items;
11 }
12
13 export const FIXTURE_ENTRYPOINT = {
14 fn: hoisting,
15 params: [true],
16 isComponent: false,
17 };