We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2dc4da commit 0980f9dCopy full SHA for 0980f9d
lib/web/fetch/body.js
@@ -392,7 +392,7 @@ function bodyMixinMethods (instance) {
392
// with this and the following step given a byte sequence bytes: return the
393
// result of creating a Uint8Array from bytes in this’s relevant realm.
394
return consumeBody(this, (bytes) => {
395
- return new Uint8Array(bytes)
+ return new Uint8Array(bytes.buffer, 0, bytes.byteLength)
396
}, instance, true)
397
}
398
0 commit comments