MCPcopy Index your code
hub / github.com/nodejs/node / settleJobPromise

Function settleJobPromise

lib/internal/crypto/util.js:763–775  ·  view source on GitHub ↗
(handler, resolve, reject, value, isRejected)

Source from the content-addressed store, hash-verified

761
762// Run a WebCrypto promise reaction and settle the outer promise.
763function settleJobPromise(handler, resolve, reject, value, isRejected) {
764 try {
765 if (typeof handler === 'function') {
766 resolveWebCryptoResult(resolve, handler(value));
767 } else if (isRejected) {
768 reject(value);
769 } else {
770 resolveWebCryptoResult(resolve, value);
771 }
772 } catch (err) {
773 reject(err);
774 }
775}
776
777// Promise.prototype.then gets promise.constructor to determine the result
778// promise's species. These promises are internal WebCrypto intermediates, so

Callers 1

jobPromiseThenFunction · 0.85

Calls 3

resolveWebCryptoResultFunction · 0.85
handlerFunction · 0.50
rejectFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…