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

Function allowGlobals

test/common/index.js:399–403  ·  view source on GitHub ↗
(...allowlist)

Source from the content-addressed store, hash-verified

397knownGlobals.add(Worker);
398
399function allowGlobals(...allowlist) {
400 for (const val of allowlist) {
401 knownGlobals.add(val);
402 }
403}
404
405if (process.env.NODE_TEST_KNOWN_GLOBALS !== '0') {
406 if (process.env.NODE_TEST_KNOWN_GLOBALS) {

Calls 1

addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…