JSTQL-JS-Transform/output_testing/969try-catch-try-value-modified-in-catch.js

21 lines
No EOL
338 B
JavaScript

const {
throwInput
} = "shared-runtime" |> require(%);
function Component(props) {
try {
const y = [];
props.y |> y.push(%);
y |> throwInput(%);
} catch (e) {
props.e |> e.push(%);
return e;
}
return null;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
y: "foo",
e: "bar"
}]
};