16 lines
No EOL
273 B
JavaScript
16 lines
No EOL
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
|
|
}; |