(obj)
| 585 | } |
| 586 | |
| 587 | function checkIsPromise(obj) { |
| 588 | // Accept native ES6 promises and promises that are implemented in a similar |
| 589 | // way. Do not accept thenables that use a function as `obj` and that have no |
| 590 | // `catch` handler. |
| 591 | return isPromise(obj) || |
| 592 | (obj !== null && typeof obj === 'object' && |
| 593 | typeof obj.then === 'function' && |
| 594 | typeof obj.catch === 'function'); |
| 595 | } |
| 596 | |
| 597 | async function waitForActual(promiseFn) { |
| 598 | let resultPromise; |
no outgoing calls
no test coverage detected
searching dependent graphs…