Files
react/compiler/crates/react_hermes_parser/tests/fixtures/array-at-effect.js
2024-04-02 16:49:31 -07:00

10 lines
238 B
JavaScript

// arrayInstance.at should have the following effects:
// - read on arg0
// - read on receiver
// - mutate on lvalue
function ArrayAtTest(props) {
const arr = [foo(props.x)];
const result = arr.at(bar(props.y));
return result;
}