JSTQL-JS-Transform/output_testing/473ssa-renaming-unconditional-with-mutation.js

15 lines
229 B
JavaScript
Raw Normal View History

function foo(props) {
let x = [];
props.bar |> x.push(%);
if (props.cond) {
x = {};
x = [];
props.foo |> x.push(%);
} else {
x = [];
x = [];
props.bar |> x.push(%);
}
x |> mut(%);
return x;
}