22 lines
316 B
JavaScript
22 lines
316 B
JavaScript
|
import { mutate } from "shared-runtime";
|
||
|
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"]
|
||
|
};
|