(id)
| 427 | }; |
| 428 | |
| 429 | function requireBuiltin(id) { |
| 430 | if (id === selfId) { |
| 431 | return loaderExports; |
| 432 | } |
| 433 | |
| 434 | const mod = BuiltinModule.map.get(id); |
| 435 | // Can't load the internal errors module from here, have to use a raw error. |
| 436 | // eslint-disable-next-line no-restricted-syntax |
| 437 | if (!mod) throw new TypeError(`Missing internal module '${id}'`); |
| 438 | return mod.compileForInternalLoader(); |
| 439 | } |
| 440 | |
| 441 | // Allow internal modules from dependencies to require |
| 442 | // other modules from dependencies by providing fallbacks. |
no test coverage detected
searching dependent graphs…