mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
e3c6c4e739
Treat a named function expression’s private name as a function-entry binding through HIR, SSA, and alias analysis. This prevents self-references from reaching mutation inference uninitialized and adds fixture coverage. Closes #23752. Validated with targeted compiler and linter checks, workspace checking, and linting. AI-assisted.
11 lines
190 B
TypeScript
11 lines
190 B
TypeScript
export function Component(recursive) {
|
|
return function recursive(x) {
|
|
const read = () => recursive;
|
|
if (x) {
|
|
return read;
|
|
}
|
|
recursive = null;
|
|
return read;
|
|
};
|
|
}
|