Commit 16ee842
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 fe2cd09 commit 16ee842Copy full SHA for 16ee842
File tree
Expand file treeCollapse file tree
2 files changed
+30
-2
lines changedOpen diff view settings
Filter options
- lib/internal/streams
- test/parallel
Expand file treeCollapse file tree
2 files changed
+30
-2
lines changedOpen diff view settings
Collapse file
lib/internal/streams/pipeline.js
Copy file name to clipboardExpand all lines: lib/internal/streams/pipeline.js+9-1Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
33 | 33 | |
34 | 34 | |
35 | 35 | |
| 36 | + |
36 | 37 | |
37 | 38 | |
38 | 39 | |
| ||
229 | 230 | |
230 | 231 | |
231 | 232 | |
232 | | - |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
233 | 241 | |
234 | 242 | |
235 | 243 | |
|
Collapse file
test/parallel/test-stream-pipeline.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-pipeline.js+21-1Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1027 | 1027 | |
1028 | 1028 | |
1029 | 1029 | |
1030 | | - |
| 1030 | + |
1031 | 1031 | |
1032 | 1032 | |
1033 | 1033 | |
| ||
1447 | 1447 | |
1448 | 1448 | |
1449 | 1449 | |
| 1450 | + |
| 1451 | + |
| 1452 | + |
| 1453 | + |
| 1454 | + |
| 1455 | + |
| 1456 | + |
| 1457 | + |
| 1458 | + |
| 1459 | + |
| 1460 | + |
| 1461 | + |
| 1462 | + |
| 1463 | + |
| 1464 | + |
| 1465 | + |
| 1466 | + |
| 1467 | + |
| 1468 | + |
| 1469 | + |
0 commit comments