Lines Matching refs:process
59 // Overwrite process.domain with a getter/setter that will allow for more
62 ObjectDefineProperty(process, 'domain', {
77 if (process.domain !== null && process.domain !== undefined) {
79 pairing.set(asyncId, process.domain[kWeak]);
87 value: process.domain,
94 vmPromises.set(resource, process.domain);
124 if (process.hasUncaughtExceptionCaptureCallback()) {
132 const { setUncaughtExceptionCaptureCallback } = process;
133 process.setUncaughtExceptionCaptureCallback = function(fn) {
143 process.emitWarning(
181 return process.domain._errorHandler(er);
187 process.on('newListener', (name, listener) => {
192 process.removeListener(name, domainUncaughtExceptionClear);
193 process.prependListener(name, domainUncaughtExceptionClear);
197 process.on('removeListener', (name, listener) => {
201 const listeners = process.listeners('uncaughtException');
203 process.removeListener(name, domainUncaughtExceptionClear);
209 exports.active = process.domain = null;
237 // Called by process._fatalException in case an error was thrown.
265 // process abort. Using try/catch here would always make V8 think
270 // as this would throw an error, make the process exit, and thus
271 // prevent the process 'uncaughtException' event from being emitted
294 // the domain, because we're going to crash the process anyway.
302 exports.active = process.domain = stack[stack.length - 1];
303 caught = process.domain._errorHandler(er2);
323 exports.active = process.domain = this;
338 process.domain = exports.active;
486 // handler, there's no active domain or this is process
488 this === process) {
514 const origActiveDomain = process.domain;
519 while (idx > -1 && process.domain === stack[idx]) {
533 exports.active = process.domain = stack[stack.length - 1];
535 exports.active = process.domain = null;
545 exports.active = process.domain = origActiveDomain;