Commit 05b7b8d
stream: fix error handling with async iteration
Fix an issue when an error was emitted by the stream before
`iterator.next()` is called.
PR-URL: #20329
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>1 parent 348d391 commit 05b7b8dCopy full SHA for 05b7b8d
File tree
Expand file treeCollapse file tree
2 files changed
+13
-1
lines changedOpen diff view settings
Filter options
- lib/internal/streams
- test/parallel
Expand file treeCollapse file tree
2 files changed
+13
-1
lines changedOpen diff view settings
Collapse file
lib/internal/streams/async_iterator.js
Copy file name to clipboardExpand all lines: lib/internal/streams/async_iterator.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
58 | 58 | |
59 | 59 | |
60 | 60 | |
61 | | - |
| 61 | + |
62 | 62 | |
63 | 63 | |
64 | 64 | |
|
Collapse file
test/parallel/test-stream-readable-async-iterators.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-readable-async-iterators.js+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
115 | 115 | |
116 | 116 | |
117 | 117 | |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
118 | 130 | |
119 | 131 | |
120 | 132 | |
|
0 commit comments