()
| 288 | // To be called during pre-execution when --expose-internals is on. |
| 289 | // Enables the user-land module loader to access internal modules. |
| 290 | static exposeInternals() { |
| 291 | for (let i = 0; i < internalBuiltinIds.length; ++i) { |
| 292 | BuiltinModule.allowRequireByUsers(internalBuiltinIds[i]); |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | static exists(id) { |
| 297 | return BuiltinModule.map.has(id); |
no test coverage detected