626 B
626 B
Input
function component(a) {
let z = {a};
(function () {
(function () {
z.b = 1;
})();
})();
return z;
}
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [2],
};
Code
import { c as _c } from "react/compiler-runtime";
function component(a) {
const $ = _c(2);
let z;
if ($[0] !== a) {
z = { a };
(function () {
z.b = 1;
})();
$[0] = a;
$[1] = z;
} else {
z = $[1];
}
return z;
}
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [2],
};
Eval output
(kind: ok) {"a":2,"b":1}