JSTQL-JS-Transform/output_testing/572capturing-fun-alias-captured-mutate-arr-2.js

15 lines
182 B
JavaScript
Raw Normal View History

function component(foo, bar) {
let x = {
foo
};
let y = {
bar
};
(function () {
let a = [y];
let b = x;
a.x = b;
})();
y |> mutate(%);
return x;
}