JSTQL-JS-Transform/output_testing/1237capturing-func-alias-receiver-mutate-iife.js

19 lines
272 B
JavaScript
Raw Normal View History

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