Upstream coverage
js/web/fetch/body.test.ts(corpus position 4118)
Required parity
- accept Bun-compatible ArrayBuffer, SharedArrayBuffer, and typed-array bodies
- preserve correct SharedArrayBuffer branding and copy semantics
- compare Blob/File values semantically across backing representations
- round-trip Bun.file-backed FormData entries lazily through multipart
- reject null Request/Response FormData bodies with structured TypeErrors
- keep
bodyUsedcorrect across JSON fast paths - prevent async assertion failures from being attributed to a later test
Error contract
Body/FormData failures must retain operation, content type, cause, and composed stack metadata. Assertion failures must identify the originating test even when they settle asynchronously.
Acceptance
The upstream file passes all 346 runnable assertions with 4 upstream todos and 0 failed/unsupported cases, plus the permanent web regression queue and repository build remain green.