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

Function jobPromise

lib/internal/crypto/util.js:721–729  ·  view source on GitHub ↗
(getJob)

Source from the content-addressed store, hash-verified

719// AdditionalConfig hook. WebCrypto needs those operation-specific setup
720// failures to reject with an OperationError.
721function jobPromise(getJob) {
722 try {
723 return getJob().run();
724 } catch (err) {
725 return PromiseReject(lazyDOMException(
726 'The operation failed for an operation-specific reason',
727 { name: 'OperationError', cause: err }));
728 }
729}
730
731// Temporarily shadow inherited then accessors on WebCrypto result objects.
732// Promise resolution reads "then" synchronously for thenable assimilation.

Callers 15

mlDsaGenerateKeyFunction · 0.85
mlDsaSignVerifyFunction · 0.85
mlKemGenerateKeyFunction · 0.85
mlKemEncapsulateFunction · 0.85
mlKemDecapsulateFunction · 0.85
pbkdf2DeriveBitsFunction · 0.85
c20pCipherFunction · 0.85
c20pGenerateKeyFunction · 0.85
ecGenerateKeyFunction · 0.85
ecdsaSignVerifyFunction · 0.85
cfrgGenerateKeyFunction · 0.85
eddsaSignVerifyFunction · 0.85

Calls 2

lazyDOMExceptionFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…