JSTQL-JS-Transform/output_testing/566ssa-cascading-eliminated-phis.js

15 lines
245 B
JavaScript
Raw Normal View History

function Component(props) {
let x = 0;
const values = [];
const y = props.a || props.b;
y |> values.push(%);
if (props.c) {
x = 1;
}
x |> values.push(%);
if (props.d) {
x = 2;
}
x |> values.push(%);
return values;
}