JSTQL-JS-Transform/output_testing/1075ssa-renaming-via-destructuring.js

27 lines
338 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(%);
}
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: ["TodoAdd"],
isComponent: "TodoAdd"
};