Commit 313ecaa
stream: fix broken pipeline error propagation
If the destination was an async function any
error thrown from that function would be swallowed.
Backport-PR-URL: #31975
PR-URL: #31835
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>1 parent 8ad64b8 commit 313ecaaCopy full SHA for 313ecaa
File tree
Expand file treeCollapse file tree
3 files changed
+34
-13
lines changedOpen diff view settings
Filter options
- lib/internal/streams
- test/parallel
Expand file treeCollapse file tree
3 files changed
+34
-13
lines changedOpen diff view settings
Collapse file
lib/internal/streams/pipeline.js
Copy file name to clipboardExpand all lines: lib/internal/streams/pipeline.js+8-8Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
163 | 163 | |
164 | 164 | |
165 | 165 | |
| 166 | + |
166 | 167 | |
167 | 168 | |
168 | | - |
| 169 | + |
169 | 170 | |
170 | 171 | |
171 | 172 | |
| ||
177 | 178 | |
178 | 179 | |
179 | 180 | |
180 | | - |
| 181 | + |
181 | 182 | |
182 | 183 | |
183 | 184 | |
184 | 185 | |
185 | 186 | |
186 | | - |
| 187 | + |
187 | 188 | |
188 | 189 | |
189 | 190 | |
| ||
229 | 230 | |
230 | 231 | |
231 | 232 | |
| 233 | + |
232 | 234 | |
233 | | - |
234 | | - |
235 | | - |
236 | | - |
| 235 | + |
| 236 | + |
237 | 237 | |
238 | 238 | |
239 | 239 | |
| ||
243 | 243 | |
244 | 244 | |
245 | 245 | |
246 | | - |
| 246 | + |
247 | 247 | |
248 | 248 | |
249 | 249 | |
|
Collapse file
test/parallel/test-stream-pipeline-uncaught.js
Copy file name to clipboard+25Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
Collapse file
test/parallel/test-stream-pipeline.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-pipeline.js+1-5Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
613 | 613 | |
614 | 614 | |
615 | 615 | |
616 | | - |
617 | 616 | |
618 | | - |
| 617 | + |
619 | 618 | |
620 | | - |
621 | 619 | |
622 | 620 | |
623 | 621 | |
| ||
754 | 752 | |
755 | 753 | |
756 | 754 | |
757 | | - |
758 | 755 | |
759 | 756 | |
760 | 757 | |
| ||
775 | 772 | |
776 | 773 | |
777 | 774 | |
778 | | - |
779 | 775 | |
780 | 776 | |
781 | 777 | |
|
0 commit comments