Add Module.prototype.load for new Module() instances #29256
Claude / Claude Code Review
completed
Apr 13, 2026 in 25m 30s
Code review found 2 potential issues
Found 4 candidates, confirmed 2. See review comments for details.
Details
| Severity | Count |
|---|---|
| 🔴 Important | 0 |
| 🟡 Nit | 1 |
| 🟣 Pre-existing | 0 |
| Severity | File:Line | Issue |
|---|---|---|
| 🟡 Nit | test/regression/issue/29253.test.ts:24-43 |
Missing .name assertion for modulePrototypeLoad fix |
Annotations
Check warning on line 43 in test/regression/issue/29253.test.ts
claude / Claude Code Review
Missing .name assertion for modulePrototypeLoad fix
The test at `test/regression/issue/29253.test.ts` (lines 24-43) checks `typeof m.load === 'function'` and `typeof Module.prototype.load === 'function'` but never asserts `m.load.name === 'load'` or `Module.prototype.load.name === 'load'`. The `$overriddenName = "load"` annotation added in commit 9a99fd35 is the only mechanism keeping `.name` correct, but it is completely unguarded by tests — removing it would leave all 5 tests green while `.name` silently regresses to `'modulePrototypeLoad'`.
Loading