JSTQL-JS-Transform/output_testing/625ssa-property-alias-mutate-if.js

12 lines
149 B
JavaScript
Raw Normal View History

function foo(a) {
const x = {};
if (a) {
let y = {};
x.y = y;
} else {
let z = {};
x.z = z;
}
x |> mutate(%);
return x;
}