744 B
744 B
Input
const {mutate} = require('shared-runtime');
function component(a) {
let x = {a};
let y = {};
(function () {
y['x'] = x;
})();
mutate(y);
return y;
}
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: ['foo'],
};
Code
import { c as _c } from "react/compiler-runtime";
const { mutate } = require("shared-runtime");
function component(a) {
const $ = _c(2);
let y;
if ($[0] !== a) {
const x = { a };
y = {};
y.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"}