* @param {Promise} promise * @param {Error} reason
(promise, reason)
| 187 | * @param {Error} reason |
| 188 | */ |
| 189 | function unhandledRejection(promise, reason) { |
| 190 | pendingUnhandledRejections.set(promise, { |
| 191 | reason, |
| 192 | uid: ++lastPromiseId, |
| 193 | warned: false, |
| 194 | domain: process.domain, |
| 195 | contextFrame: AsyncContextFrame.current(), |
| 196 | }); |
| 197 | setHasRejectionToWarn(true); |
| 198 | } |
| 199 | |
| 200 | /** |
| 201 | * @param {Promise} promise |
no test coverage detected
searching dependent graphs…