Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup
  • Loading branch information
ronag committed Dec 16, 2021
commit bb4e9f01e9eb2214af5c24404e503c7c51d27379
7 changes: 3 additions & 4 deletions test/parallel/test-whatwg-readablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -1576,16 +1576,15 @@ class Source {

{
const stream = new ReadableStream({
start(controller) {
pull: common.mustCall((controller) => {
controller.error(new Error());
},
pull: common.mustNotCall(),
}),
});

const reader = stream.getReader();
(async () => {
isErrored(stream, false);
await reader.read();
await reader.read().catch(common.mustCall());
isErrored(stream, true);
})().then(common.mustCall());
}