Files
react/compiler/crates/react_hermes_parser/tests/fixtures/capturing-func-alias-captured-mutate.js
2024-04-02 16:49:31 -07:00

12 lines
168 B
JavaScript

function component(foo, bar) {
let x = { foo };
let y = { bar };
(function () {
let a = { y };
let b = x;
a.x = b;
})();
mutate(y);
return y;
}