mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
33d4ed9dec
Preserve named function expression names when the private name is unreferenced. This matches React Compiler lowering and avoids changing observable `Function.name` values. Validated with `just ready`. AI-assisted.
18 lines
333 B
TypeScript
18 lines
333 B
TypeScript
export function Component({ value }) {
|
|
const columns = [
|
|
{
|
|
render: function Render(input) {
|
|
const copy = input;
|
|
return copy + value;
|
|
},
|
|
},
|
|
{
|
|
render: function Render(input) {
|
|
const copy = input;
|
|
return copy + value;
|
|
},
|
|
},
|
|
];
|
|
return <div>{columns}</div>;
|
|
}
|