(value, event)
| 33 | // `rejectionHandled` pass a `Promise` as argument. The other events pass the |
| 34 | // main value as is. |
| 35 | const resolveValue = async (value, event) => { |
| 36 | if (event !== 'rejectionHandled') { |
| 37 | return value |
| 38 | } |
| 39 | |
| 40 | try { |
| 41 | return await value |
| 42 | } catch (error) { |
| 43 | return error |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | // With `--unhandled-rejections=strict`, `unhandledRejection` also emits an |
| 48 | // `uncaughtException` event. We discard it to avoid repetitions. |
no outgoing calls
no test coverage detected
searching dependent graphs…