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 d4c3a1f commit 39a70c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/internal/streams/body.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,13 @@ class Body {
return this[kState].readable !== null;
}

async promise() {
// eslint-disable-next-line no-unused-vars
for await (const chunk of this.readableNodeStream()) {
// Do nothing..
}
}

readableNodeStream() {
const { readable } = this[kState];

Expand Down

0 comments on commit 39a70c4

Please sign in to comment.