()
| 27 | export const thrownErrors: Array<mixed> = []; |
| 28 | |
| 29 | async function waitForMicrotasks() { |
| 30 | return new Promise(resolve => { |
| 31 | enqueueTask(() => resolve()); |
| 32 | }); |
| 33 | } |
| 34 | |
| 35 | function aggregateErrors(errors: Array<mixed>): mixed { |
| 36 | if (errors.length > 1 && typeof AggregateError === 'function') { |