JSTQL-JS-Transform/output_testing/595ssa-renaming-via-destructuring-with-mutation.js

23 lines
255 B
JavaScript
Raw Normal View History

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