Commit 0738a2b
stream: finished should error on errored stream
Calling finished before or after a stream has errored or closed
should end up with the same behavior.
PR-URL: #39235
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent 68548fd commit 0738a2bCopy full SHA for 0738a2b
File tree
Expand file treeCollapse file tree
4 files changed
+64
-26
lines changedOpen diff view settings
Filter options
- lib
- internal/streams
- test/parallel
Expand file treeCollapse file tree
4 files changed
+64
-26
lines changedOpen diff view settings
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
806 | 806 | |
807 | 807 | |
808 | 808 | |
| 809 | + |
| 810 | + |
| 811 | + |
809 | 812 | |
810 | 813 | |
811 | 814 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
188 | 188 | |
189 | 189 | |
190 | 190 | |
| 191 | + |
| 192 | + |
| 193 | + |
191 | 194 | |
192 | 195 | |
193 | 196 | |
|
Collapse file
lib/internal/streams/end-of-stream.js
Copy file name to clipboardExpand all lines: lib/internal/streams/end-of-stream.js+35-26Lines changed: 35 additions & 26 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
98 | 98 | |
99 | 99 | |
100 | 100 | |
101 | | - |
102 | | - |
| 101 | + |
103 | 102 | |
104 | 103 | |
105 | 104 | |
| ||
111 | 110 | |
112 | 111 | |
113 | 112 | |
114 | | - |
115 | | - |
| 113 | + |
116 | 114 | |
117 | 115 | |
118 | 116 | |
| ||
128 | 126 | |
129 | 127 | |
130 | 128 | |
| 129 | + |
| 130 | + |
131 | 131 | |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
132 | 140 | |
133 | 141 | |
134 | 142 | |
| ||
139 | 147 | |
140 | 148 | |
141 | 149 | |
| 150 | + |
142 | 151 | |
143 | 152 | |
144 | 153 | |
| ||
168 | 177 | |
169 | 178 | |
170 | 179 | |
171 | | - |
172 | | - |
173 | | - |
174 | | - |
175 | | - |
176 | | - |
177 | | - |
178 | | - |
179 | | - |
180 | | - |
181 | | - |
182 | | - |
183 | | - |
184 | 180 | |
185 | | - |
186 | | - |
187 | | - |
188 | | - |
189 | | - |
190 | | - |
191 | | - |
192 | | - |
193 | | - |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
194 | 203 | |
195 | 204 | |
196 | 205 | |
|
Collapse file
test/parallel/test-stream-finished.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-finished.js+23Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
608 | 608 | |
609 | 609 | |
610 | 610 | |
| 611 | + |
| 612 | + |
| 613 | + |
| 614 | + |
| 615 | + |
| 616 | + |
| 617 | + |
| 618 | + |
| 619 | + |
| 620 | + |
| 621 | + |
| 622 | + |
| 623 | + |
| 624 | + |
| 625 | + |
| 626 | + |
| 627 | + |
| 628 | + |
| 629 | + |
| 630 | + |
| 631 | + |
| 632 | + |
| 633 | + |
0 commit comments