Input
function Component() {
let obj = {
method() {
return 1;
},
};
return obj.method();
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{x: 1}, {a: 2}, {b: 2}],
};
Code
import { c as _c } from "react/compiler-runtime";
function Component() {
const $ = _c(1);
let t0;
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
const obj = {
method() {
return 1;
},
};
t0 = obj.method();
$[0] = t0;
} else {
t0 = $[0];
}
return t0;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{ x: 1 }, { a: 2 }, { b: 2 }],
};
Eval output
(kind: ok) 1