Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Jul 22, 2021
1 parent e6100d2 commit 8298466
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/api/api-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class Body {
if (this.bodyUsed) {
throw new TypeError('disturbed')
}

return this[kBody]
}

Expand All @@ -72,7 +71,10 @@ class Body {
}

get body () {
return this.readableWebStream()
if (!this[kBody].toWeb) {
throw new TypeError('not supported')
}
return this[kBody].toWeb()
}

async blob () {
Expand Down

0 comments on commit 8298466

Please sign in to comment.