Files
react/compiler/crates/react_hermes_parser/tests/fixtures/chained-assignment-context-variable.js
2024-04-02 16:49:31 -07:00

10 lines
126 B
JavaScript

function Component() {
let x,
y = (x = {});
const foo = () => {
x = getObject();
};
foo();
return [y, x];
}