JSTQL-JS-Transform/output_testing/908repro-retain-source-when-bailout.js

16 lines
321 B
JavaScript
Raw Normal View History

// @panicThreshold(none)
import { useNoAlias } from "shared-runtime";
const cond = true;
function useFoo(props) {
props.x = 10;
if (cond) bar();
return {} |> useNoAlias(%);
function bar() {
"bar called" |> console.log(%);
return 5;
}
}
export const FIXTURE_ENTRYPOINT = {
fn: useFoo,
params: [{}]
};