Follow-up parity work discovered while completing the Bun.serve static response tranche in #66.
js/web/fetch/headers.undici.test.ts exposed missing Web-IDL constructor, iterator, validation, and header-list semantics in Home’s bootstrap runtime.
Completed scope:
- reject primitive and malformed initializers with Bun-compatible TypeErrors
- implement one-time iterator lookup and Web-IDL record/sequence conversion
- normalize ByteString header values and preserve
Set-Cookielists - implement live sorted Headers iterators, method branding, arities, and inherited
toString - retain user header casing on the wire while canonicalizing standard response names
- preserve Request headers when fetch init overrides unrelated fields
- enable the complete untouched upstream corpus without suppression
Tracked separately from #66 to keep the main parity log readable.