()
| 516 | } |
| 517 | |
| 518 | async next(): Promise<IteratorResult<T>> { |
| 519 | try { |
| 520 | return this.nextFn(); |
| 521 | } catch (e) { |
| 522 | // Modify the error message but leave the stack trace intact |
| 523 | e.message = |
| 524 | `Error thrown while iterating through a dataset: ${e.message}`; |
| 525 | throw e; |
| 526 | } |
| 527 | } |
| 528 | } |
| 529 | |
| 530 | class SerialIterator<T> extends LazyIterator<T> { |
nothing calls this directly
no outgoing calls
no test coverage detected