()
| 477 | const body = originalBody; |
| 478 | |
| 479 | async function* bodyReporter(): AsyncGenerator<string | Buffer> { |
| 480 | try { |
| 481 | for await (const chunk of body) { |
| 482 | yield chunk; |
| 483 | } |
| 484 | } catch (e) { |
| 485 | // Report stream errors coming from user code or Astro rendering. |
| 486 | sendErrorToSentry(e); |
| 487 | throw e; |
| 488 | } |
| 489 | } |
| 490 | |
| 491 | try { |
| 492 | for await (const chunk of bodyReporter()) { |
no test coverage detected