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

9 lines
143 B
JavaScript

function foo(a, b, c) {
const x = [a];
const y = [null, b];
const z = [[], [], [c]];
x[0] = y[1];
z[0][0] = x[0];
return [x, z];
}