stream: do not swallow errors with async iterators and pipeline · nodejs/node@0a00552 · GitHub
Skip to content

Commit 0a00552

Browse files
mcollinaMylesBorins
authored andcommitted
stream: do not swallow errors with async iterators and pipeline
Before this patch, pipeline() could swallow errors by pre-emptively producing a ERR_STREAM_PREMATURE_CLOSE that was not really helpful to the user. Co-Authored-By: Robert Nagy <ronagy@icloud.com> PR-URL: #32051 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent 55a8ca8 commit 0a00552

2 files changed

Lines changed: 51 additions & 15 deletions

File tree

lib/internal/streams/pipeline.js

Lines changed: 24 additions & 15 deletions

test/parallel/test-stream-pipeline.js

Lines changed: 27 additions & 0 deletions

0 commit comments

Comments
 (0)