Files
bun.sh/test/js
Alistair Smith 455fc8918f perf: optimize isBodyStreaming and add comprehensive test coverage
Performance optimization:
- Reorder runtime checks to test Locked.readable.held.has() before
  invoking getBodyReadableStream() JS getter
- Avoids JS call in common case where body is Locked with held stream

Additional test coverage:
- Request with consumed streaming body
- Response.clone() preserving streaming status on both copies
- response.body.tee() creating two streaming responses
- Ensures edge cases are covered for body manipulation scenarios
2025-11-14 13:38:31 -08:00
..