MCPcopy Index your code
hub / github.com/nodejs/node / exposeInternals

Method exposeInternals

lib/internal/bootstrap/realm.js:290–294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers 1

setupDebugEnvFunction · 0.80

Calls 1

allowRequireByUsersMethod · 0.80

Tested by

no test coverage detected