JSTQL-JS-Transform/output_testing/1019hoisting-nested-block-statements.js

13 lines
226 B
JavaScript
Raw Normal View History

import { print } from "shared-runtime";
function hoisting(cond) {
if (cond) {
const x = 1;
x |> print(%);
}
const x = 2;
x |> print(%);
}
export const FIXTURE_ENTRYPOINT = {
fn: hoisting,
params: [false]
};