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

Function addReadOnlyProcessAlias

lib/internal/process/pre_execution.js:321–332  ·  view source on GitHub ↗
(name, option, enumerable = true)

Source from the content-addressed store, hash-verified

319}
320
321function addReadOnlyProcessAlias(name, option, enumerable = true) {
322 const value = getOptionValue(option);
323 if (value) {
324 ObjectDefineProperty(process, name, {
325 __proto__: null,
326 writable: false,
327 configurable: true,
328 enumerable,
329 value,
330 });
331 }
332}
333
334function setupWarningHandler() {
335 const {

Callers 1

patchProcessObjectFunction · 0.85

Calls 1

getOptionValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…