Corpus location
- Position: 4131
- File:
js/web/fetch/fetch-gzip.test.ts - First observed failure:
TypeError: console.trace is not a function
Required parity
- Implement
console.tracewith useful stack output without disrupting fetch execution. - Transparently decode buffered, redirected, streamed, and multi-chunk gzip responses.
- Resolve relative and protocol-relative redirects correctly while preserving
url,redirected, and status metadata. - Match content codings case-insensitively, including
x-gzip, plus deflate, Brotli, and Zstandard. - Leave unknown content encodings untouched.
- Treat zero-byte compressed responses as empty for both chunked and
Content-Length: 0framing. - Preserve decompression across large bodies and raw TCP framing without hidden fixed output limits.
- Surface malformed or failed decompression through structured errors with codec, operation, response, cause, and composed stack context.
Completion gate
- Make the complete copied Bun corpus file pass, apart from explicit upstream todos if any.
- Add focused regressions and pin the file in the permanent HTTP/web mini-suite.
- Keep copied-corpus accounting and the project build green.
Parent tracker: #66