(getJob)
| 719 | // AdditionalConfig hook. WebCrypto needs those operation-specific setup |
| 720 | // failures to reject with an OperationError. |
| 721 | function 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. |
no test coverage detected
searching dependent graphs…