24 lines
No EOL
328 B
JavaScript
24 lines
No EOL
328 B
JavaScript
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 y;
|
|
}
|
|
export const FIXTURE_ENTRYPOINT = {
|
|
fn: component,
|
|
params: ["foo", "bar"]
|
|
}; |