Lines Matching refs:promise
93 function promiseRejectHandler(type, promise, reason) { argument
99 unhandledRejection(promise, reason);
102 handledRejection(promise);
105 resolveError('resolve', promise, reason);
108 resolveError('reject', promise, reason);
113 function resolveError(type, promise, reason) { argument
117 process.emit('multipleResolves', type, promise, reason);
121 function unhandledRejection(promise, reason) { argument
122 maybeUnhandledPromises.set(promise, {
128 pendingUnhandledRejections.push(promise);
132 function handledRejection(promise) { argument
133 const promiseInfo = maybeUnhandledPromises.get(promise);
135 maybeUnhandledPromises.delete(promise);
144 asyncHandledRejections.push({ promise, warning }); property
194 const { promise, warning } = asyncHandledRejections.shift();
195 if (!process.emit('rejectionHandled', promise)) {
202 const promise = pendingUnhandledRejections.shift();
203 const promiseInfo = maybeUnhandledPromises.get(promise);
214 const handled = process.emit('unhandledRejection', reason, promise);
219 process.emit('unhandledRejection', reason, promise);
223 process.emit('unhandledRejection', reason, promise);
228 const handled = process.emit('unhandledRejection', reason, promise);
237 const handled = process.emit('unhandledRejection', reason, promise);
245 const handled = process.emit('unhandledRejection', reason, promise);