JSTQL-JS-Transform/output_testing/1033hoisting-nested-const-declaration-2.js

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
};