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

7 lines
163 B
JavaScript

function Component(props) {
const x = [{}, [], props.value];
const y = x.join(() => "this closure gets stringified, not called");
foo(y);
return [x, y];
}