Lines Matching refs:active
156 if (exports.active && domain)
209 exports.active = process.domain = null;
233 // The active domain is always the one that we're currently in.
234 exports.active = null;
251 // Pop all adjacent duplicates of the currently active domain from the stack.
255 while (exports.active === this) {
275 // the top-level domain is not active anymore, it would be ok to abort on
302 exports.active = process.domain = stack[stack.length - 1];
323 exports.active = process.domain = this;
337 exports.active = stack.length === 0 ? undefined : stack[stack.length - 1];
338 process.domain = exports.active;
470 if (exports.active && !(this instanceof exports.Domain)) {
471 this.domain = exports.active;
486 // handler, there's no active domain or this is process
509 // set the active domain to its parent (if any) so that the domain's error
517 // instance that is not a duplicate of the current active domain.
523 // Change the stack to not contain the current active domain, and only the
531 // Change the current active domain
533 exports.active = process.domain = stack[stack.length - 1];
535 exports.active = process.domain = null;
543 // stack and the active domain to their original values.
545 exports.active = process.domain = origActiveDomain;