Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/alias-capture-in-method-receiver-and-mutate.js
T
2026-08-27 21:09:14 +00:00

20 lines
398 B
JavaScript

import {makeObject_Primitives, mutate} from 'shared-runtime';
function Component() {
// a's mutable range should be the same as x's mutable range,
// since a is captured into x (which gets mutated later)
let a = makeObject_Primitives();
let x = [];
x.push(a);
mutate(x);
return [x, a];
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};