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

Function validateId

lib/internal/bootstrap/switches/does_own_process_state.js:93–99  ·  view source on GitHub ↗
(id, name)

Source from the content-addressed store, hash-verified

91 }
92
93 function validateId(id, name) {
94 if (typeof id === 'number') {
95 validateUint32(id, name);
96 } else if (typeof id !== 'string') {
97 throw new ERR_INVALID_ARG_TYPE(name, ['number', 'string'], id);
98 }
99 }
100
101 return {
102 initgroups,

Callers 3

initgroupsFunction · 0.85
setgroupsFunction · 0.85
wrapIdSetterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…