Files
react/compiler/crates/react_hermes_parser/tests/fixtures/method-call-computed.js
2024-04-02 16:49:31 -07:00

14 lines
235 B
JavaScript

function foo(a, b, c) {
// Construct and freeze x, y
const x = makeObject(a);
const y = makeObject(a);
<div>
{x}
{y}
</div>;
// z should depend on `x`, `y.method`, and `b`
const z = x[y.method](b);
return z;
}