Lines Matching refs:stack
121 const domainRequireStack = new Error('require(`domain`) at this point').stack;
126 err.stack = err.stack + '\n' + '-'.repeat(40) + '\n' + domainRequireStack;
161 let stack = []; variable
162 exports._stack = stack;
166 if (ArrayPrototypeEvery(stack,
199 stack.length = 0;
258 if (stack.length === 0) {
291 if (stack.length) {
292 exports.active = process.domain = stack[stack.length - 1];
314 ArrayPrototypePush(stack, this);
321 const index = ArrayPrototypeLastIndexOf(stack, this);
325 ArrayPrototypeSplice(stack, index);
327 exports.active = stack.length === 0 ? undefined : stack[stack.length - 1];
498 const origDomainsStack = ArrayPrototypeSlice(stack);
503 let idx = stack.length - 1;
504 while (idx > -1 && process.domain === stack[idx]) {
511 stack.length = 0;
513 ArrayPrototypeSplice(stack, idx + 1);
517 if (stack.length > 0) {
518 exports.active = process.domain = stack[stack.length - 1];
529 exports._stack = stack = origDomainsStack;