()
| 135 | |
| 136 | class FakeErrorHandler extends ErrorHandler { |
| 137 | constructor() { |
| 138 | super(); |
| 139 | effect(() => { |
| 140 | if (shouldError()) { |
| 141 | throw new Error('fail!'); |
| 142 | } |
| 143 | }); |
| 144 | } |
| 145 | |
| 146 | override handleError(error: any): void { |
| 147 | lastError = error; |