Corpus location
- Position: 4129
- File:
js/web/fetch/fetch-connection-header.test.ts - First observed failure:
SyntaxError: Unexpected token ':'. Expected ')' to end an argument list.
Required parity
- Correctly erase the typed async arrow signature
(fetchOptions: RequestInit): Promise<Record<string, string>> =>without damaging the surrounding JavaScript. - Erase the local
Record<string, string>annotation used by the captured-header object. - Preserve explicit
Connectionvalues and their value casing while matching the header name case-insensitively. - Provide Bun's default
Connection: keep-alivewhen the caller does not supply the header. - Preserve other request headers alongside
Connection. - Keep any header validation failures structured with stable operation/header context, causes, and useful stacks.
Completion gate
- Make the complete copied Bun corpus file pass.
- Add focused rewrite/runtime regressions and pin the file in the permanent HTTP/web mini-suite.
- Keep copied-corpus accounting and the project build green.
Parent tracker: #66