(e: PromiseRejectionEvent)
| 176 | throw new Error('test'); |
| 177 | }; |
| 178 | const unhandledRejection = (e: PromiseRejectionEvent) => { |
| 179 | fail('should not be here'); |
| 180 | }; |
| 181 | window.addEventListener('unhandledrejection', unhandledRejection); |
| 182 | req.addEventListener('load', () => { |
| 183 | logs.push('onload1'); |