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