mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 19:38:58 +00:00
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