Lines Matching full:process
10 // of the code here focuses on setting up the global proxy and the process
12 // As special caution is given to the performance of the startup process,
20 // module loaders, including `process.binding()`, `process._linkedBinding()`,
37 /* global process, require, internalBinding, primordials */
58 process.domain = null;
59 process._exiting = false;
61 // process.config is serialized config.gypi
62 process.config = JSONParse(internalBinding('native_module').config);
66 const perThreadSetup = require('internal/process/per_thread');
69 // Set up methods on the process object for all threads
71 process.dlopen = rawMethods.dlopen;
72 process.uptime = rawMethods.uptime;
75 process._getActiveRequests = rawMethods._getActiveRequests;
76 process._getActiveHandles = rawMethods._getActiveHandles;
79 process.reallyExit = rawMethods.reallyExit;
80 process._kill = rawMethods._kill;
83 process._rawDebug = wrapped._rawDebug;
84 process.hrtime = wrapped.hrtime;
85 process.hrtime.bigint = wrapped.hrtimeBigInt;
86 process.cpuUsage = wrapped.cpuUsage;
87 process.resourceUsage = wrapped.resourceUsage;
88 process.memoryUsage = wrapped.memoryUsage;
89 process.kill = wrapped.kill;
90 process.exit = wrapped.exit;
92 process.openStdin = function() {
93 process.stdin.resume();
94 return process.stdin;
100 process.getuid = credentials.getuid;
101 process.geteuid = credentials.geteuid;
102 process.getgid = credentials.getgid;
103 process.getegid = credentials.getegid;
104 process.getgroups = credentials.getgroups;
108 // process. They use the same functions as the JS embedder API. These callbacks
117 } = require('internal/process/task_queues');
157 // attached to the per-process TracingController.
161 // process.allowedNodeEnvironmentFlags
162 ObjectDefineProperty(process, 'allowedNodeEnvironmentFlags', {
165 process.allowedNodeEnvironmentFlags = flags;
166 return process.allowedNodeEnvironmentFlags;
182 // process.assert
183 process.assert = deprecate(
185 'process.assert() is deprecated. Please use the `assert` module instead.',
191 ObjectDefineProperty(process, 'features', {
213 } = require('internal/process/execution');
218 // from the process object because it has been monkey-patchable.
219 // TODO(joyeecheung): investigate whether process._fatalException
221 process._fatalException = onGlobalUncaughtException;
222 process.setUncaughtExceptionCaptureCallback =
224 process.hasUncaughtExceptionCaptureCallback =
228 const { emitWarning } = require('internal/process/warning');
229 process.emitWarning = emitWarning;
236 process.nextTick = nextTick;
239 // it has been exposed to the process object so we keep this legacy name
241 process._tickCallback = runNextTicks;
275 const origProcProto = ObjectGetPrototypeOf(process);
277 FunctionPrototypeCall(EventEmitter, process);
278 ObjectDefineProperty(process, SymbolToStringTag, {
282 value: 'process'
284 // Make process globally available to users by putting it on the global proxy
285 ObjectDefineProperty(globalThis, 'process', {
286 value: process,