Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/capturing-func-alias-captured-mutate-arr-iife.js
T
2026-08-27 21:09:14 +00:00

19 lines
290 B
JavaScript

const {mutate} = require('shared-runtime');
function component(foo, bar) {
let x = {foo};
let y = {bar};
(function () {
let a = [y];
let b = x;
a.x = b;
})();
mutate(y);
return y;
}
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: ['foo', 'bar'],
};