()
| 113 | assertIsPromise(SafePromiseAllSettledReturnVoid([])); |
| 114 | |
| 115 | async function test() { |
| 116 | const catchFn = common.mustCall(); |
| 117 | const finallyFn = common.mustCall(); |
| 118 | |
| 119 | try { |
| 120 | await Promise.reject(); |
| 121 | } catch { |
| 122 | catchFn(); |
| 123 | } finally { |
| 124 | finallyFn(); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | function assertIsPromise(promise) { |
| 129 | // Make sure the returned promise is a genuine %Promise% object and not a |
no test coverage detected