Corpus location
- Position: 4127
- File:
js/web/fetch/fetch-args.test.ts - First observed failure:
fetch(RequestInit, headers): "[object Object]" cannot be parsed as a URL
Required parity
- Accept Bun's object-shaped first argument when it contains
urland request-init fields. - Preserve normal
RequestandRequest-subclass behavior, including headers supplied by subclasses. - Apply the second argument as an override without eagerly reading it when conversion of the first argument throws.
- Preserve getter evaluation/error propagation semantics for request-init fields.
- Reject invalid headers, URLs, redirects, conflicting proxy/unix options, invalid TLS CA values, and failing stream bodies before any network request is sent.
- Surface stable structured errors with operation/input context, causes, and useful composed stacks rather than opaque conversion failures.
Completion gate
- Make the complete copied Bun corpus file pass (apart from explicit upstream todos, if any).
- Add a focused regression and pin it in the permanent HTTP/web mini-suite.
- Keep the full copied-corpus accounting and project build green.
Parent tracker: #66