Frontier: js/web/streams/readable-stream-blob-consumed.test.ts at corpus position 4181, copied unchanged from ~/Code/bun.
Current failure: ReadableStream.blob() rejects after the stream body has already been consumed, but the rejection is missing Bun’s ERR_BODY_ALREADY_USED code.
Scope:
- Centralize consumed/locked ReadableStream body validation for
blob()and related body conversion methods. - Preserve a stable
TypeErrorcode plus operation/phase context and useful stack information. - Ensure failed conversion does not crash or mutate stream lifecycle state.
- Add a permanent native regression, run the exact copied corpus file, run the full Zig build, and update #66 with exact counts.