()
| 26 | * @hidden |
| 27 | */ |
| 28 | export function ignoreNextOnError(): void { |
| 29 | // onerror should trigger before setTimeout |
| 30 | ignoreOnError++; |
| 31 | setTimeout(() => { |
| 32 | ignoreOnError--; |
| 33 | }); |
| 34 | } |
| 35 | |
| 36 | // eslint-disable-next-line @typescript-eslint/ban-types |
| 37 | type WrappableFunction = Function; |