Skip to content

Commit

Permalink
Update fetch.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Jul 31, 2020
1 parent 21bbcbf commit 37b55c2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions fetch.js
Expand Up @@ -276,10 +276,12 @@ function Body() {
if (this._bodyArrayBuffer) {
consumed(this)
if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
return Promise.resolve(this._bodyArrayBuffer.buffer.slice(
this._bodyArrayBuffer.byteOffset,
this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
))
return Promise.resolve(
this._bodyArrayBuffer.buffer.slice(
this._bodyArrayBuffer.byteOffset,
this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
)
)
} else {
return Promise.resolve(this._bodyArrayBuffer)
}
Expand Down

0 comments on commit 37b55c2

Please sign in to comment.