Commit e11a079
stream: use synchronous error validation & validate abort signal option
made sure top level methods aren't async/generators
so that validation errors could be caught synchronously
also added validation for the abort signal option
PR-URL: #41777
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>1 parent 4db343b commit e11a079Copy full SHA for e11a079
File tree
Expand file treeCollapse file tree
8 files changed
+98
-11
lines changedOpen diff view settings
Filter options
- lib/internal/streams
- test/parallel
Expand file treeCollapse file tree
8 files changed
+98
-11
lines changedOpen diff view settings
Collapse file
lib/internal/streams/operators.js
Copy file name to clipboardExpand all lines: lib/internal/streams/operators.js+58-10Lines changed: 58 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
13 | | - |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
14 | 17 | |
15 | 18 | |
16 | 19 | |
| ||
33 | 36 | |
34 | 37 | |
35 | 38 | |
36 | | - |
37 | 39 | |
38 | 40 | |
39 | 41 | |
| 42 | + |
| 43 | + |
| 44 | + |
40 | 45 | |
41 | 46 | |
42 | 47 | |
| ||
161 | 166 | |
162 | 167 | |
163 | 168 | |
164 | | - |
165 | | - |
166 | | - |
167 | | - |
168 | | - |
169 | | - |
170 | | - |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
171 | 175 | |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
172 | 186 | |
173 | 187 | |
174 | 188 | |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
175 | 196 | |
176 | 197 | |
177 | 198 | |
| ||
246 | 267 | |
247 | 268 | |
248 | 269 | |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + |
249 | 277 | |
250 | 278 | |
251 | 279 | |
| ||
283 | 311 | |
284 | 312 | |
285 | 313 | |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
286 | 321 | |
287 | 322 | |
288 | 323 | |
| ||
316 | 351 | |
317 | 352 | |
318 | 353 | |
| 354 | + |
| 355 | + |
| 356 | + |
| 357 | + |
| 358 | + |
| 359 | + |
| 360 | + |
319 | 361 | |
320 | 362 | |
321 | 363 | |
| ||
332 | 374 | |
333 | 375 | |
334 | 376 | |
335 | | - |
336 | 377 | |
| 378 | + |
| 379 | + |
| 380 | + |
| 381 | + |
| 382 | + |
| 383 | + |
| 384 | + |
337 | 385 | |
338 | 386 | |
339 | 387 | |
|
Collapse file
test/parallel/test-stream-asIndexedPairs.mjs
Copy file name to clipboardExpand all lines: test/parallel/test-stream-asIndexedPairs.mjs+7-1Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
4 | 4 | |
5 | 5 | |
6 | 6 | |
| ||
45 | 45 | |
46 | 46 | |
47 | 47 | |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
Collapse file
test/parallel/test-stream-drop-take.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-drop-take.js+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
93 | 93 | |
94 | 94 | |
95 | 95 | |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
96 | 102 | |
Collapse file
test/parallel/test-stream-flatMap.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-flatMap.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
114 | 114 | |
115 | 115 | |
116 | 116 | |
| 117 | + |
117 | 118 | |
118 | 119 | |
119 | 120 | |
|
Collapse file
test/parallel/test-stream-map.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-map.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
180 | 180 | |
181 | 181 | |
182 | 182 | |
| 183 | + |
183 | 184 | |
184 | 185 | |
185 | 186 | |
|
Collapse file
test/parallel/test-stream-reduce.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-reduce.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
121 | 121 | |
122 | 122 | |
123 | 123 | |
| 124 | + |
| 125 | + |
124 | 126 | |
125 | 127 | |
126 | 128 | |
|
Collapse file
test/parallel/test-stream-some-every.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-some-every.js+11Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
87 | 87 | |
88 | 88 | |
89 | 89 | |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
90 | 101 | |
91 | 102 | |
92 | 103 | |
|
Collapse file
test/parallel/test-stream-toArray.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-toArray.js+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
79 | 79 | |
80 | 80 | |
81 | 81 | |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
0 commit comments