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

Method allowRequireByUsers

lib/internal/bootstrap/realm.js:269–279  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

267 }
268
269 static allowRequireByUsers(id) {
270 if (id === selfId) {
271 // No code because this is an assertion against bugs.
272 // eslint-disable-next-line no-restricted-syntax
273 throw new Error(`Should not allow ${id}`);
274 }
275 canBeRequiredByUsersList.add(id);
276 if (!schemelessBlockList.has(id)) {
277 canBeRequiredByUsersWithoutSchemeList.add(id);
278 }
279 }
280
281 static setRealmAllowRequireByUsers(ids) {
282 canBeRequiredByUsersList =

Callers 6

exposeInternalsMethod · 0.80
setupFFIFunction · 0.80
setupSQLiteFunction · 0.80
setupStreamIterFunction · 0.80
setupQuicFunction · 0.80
setupVfsFunction · 0.80

Calls 2

addMethod · 0.65
hasMethod · 0.65

Tested by

no test coverage detected