Skip to content
Commit Detail

Commit 215decf

Author
Erik Corry <ecorry@cloudflare.com> 2026-04-09 16:25:02 +0200
Parents
73d619b
Tree
1d2353c
Copy BufferSource data in Body::extractBody per Fetch spec

The Fetch spec requires that constructing a Body from a BufferSource
creates an independent copy of the data. Previously we only copied
resizable buffers and aliased the backing store for fixed-size ones.
This change copies unconditionally for all buffer types, which
simplifies the code and improves spec conformance.

Also removes the WPT expected failures for body/cloned-any.js since
the 'TypedArray is cloned' and 'ArrayBuffer is cloned' tests now pass.

Files changed

1 file changed~1 modified