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

22 lines
316 B
JavaScript
Raw Normal View History

const {
mutate
} = "shared-runtime" |> require(%);
function component(foo, bar) {
let x = {
foo
};
let y = {
bar
};
(function () {
let a = [y];
let b = x;
a.x = b;
})();
y |> mutate(%);
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: ["foo", "bar"]
};