Commit d51de78
doc: fix stream async iterator sample
The for await loop into writable loop could cause an unhandled exception
in the case where we are waiting for data from the async iterable and
this no `'error'` handler is registered on the writable.
Fixes: #31222
PR-URL: #31252
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent d0a96ab commit d51de78Copy full SHA for d51de78
File tree
Expand file treeCollapse file tree
1 file changed
+11
-3
lines changedOpen diff view settings
Filter options
- doc/api
Expand file treeCollapse file tree
1 file changed
+11
-3
lines changedOpen diff view settings
Collapse file
+11-3Lines changed: 11 additions & 3 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2644 | 2644 | |
2645 | 2645 | |
2646 | 2646 | |
2647 | | - |
| 2647 | + |
2648 | 2648 | |
2649 | 2649 | |
2650 | | - |
| 2650 | + |
| 2651 | + |
2651 | 2652 | |
| 2653 | + |
2652 | 2654 | |
2653 | 2655 | |
| 2656 | + |
| 2657 | + |
| 2658 | + |
2654 | 2659 | |
2655 | | - |
| 2660 | + |
| 2661 | + |
| 2662 | + |
| 2663 | + |
2656 | 2664 | |
2657 | 2665 | |
2658 | 2666 | |
|
0 commit comments