stream: pipeline should drain empty readable · nodejs/node@c9f1398 · GitHub
Skip to content

Commit c9f1398

Browse files
ronagdanielleadams
authored andcommitted
stream: pipeline should drain empty readable
This simplifies some cases where the last stream is a Duplex without any expected output. await pipeline(readable, duplex) PR-URL: #40654 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 7237bcc commit c9f1398

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

lib/internal/streams/pipeline.js

Lines changed: 9 additions & 1 deletion

test/parallel/test-stream-pipeline.js

Lines changed: 21 additions & 1 deletion

0 commit comments

Comments
 (0)