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

Method setRealmAllowRequireByUsers

lib/internal/bootstrap/realm.js:281–286  ·  view source on GitHub ↗
(ids)

Source from the content-addressed store, hash-verified

279 }
280
281 static setRealmAllowRequireByUsers(ids) {
282 canBeRequiredByUsersList =
283 new SafeSet(ArrayPrototypeFilter(ids, (id) => ArrayPrototypeIncludes(publicBuiltinIds, id)));
284 canBeRequiredByUsersWithoutSchemeList =
285 new SafeSet(ArrayPrototypeFilter(ids, (id) => !schemelessBlockList.has(id)));
286 }
287
288 // To be called during pre-execution when --expose-internals is on.
289 // Enables the user-land module loader to access internal modules.

Callers 1

shadow_realm.jsFile · 0.80

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected