770 B
770 B
Input
import {mutate} from 'shared-runtime';
function component(a) {
let x = {a};
let y = {};
(function () {
let a = y;
a['x'] = x;
})();
mutate(y);
return y;
}
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: ['foo'],
};
Code
import { c as _c } from "react/compiler-runtime";
import { mutate } from "shared-runtime";
function component(a) {
const $ = _c(2);
let y;
if ($[0] !== a) {
const x = { a };
y = {};
const a_0 = y;
a_0.x = x;
mutate(y);
$[0] = a;
$[1] = y;
} else {
y = $[1];
}
return y;
}
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: ["foo"],
};
Eval output
(kind: ok) {"x":{"a":"foo"},"wat0":"joe"}