Commit fa691f7
committed
src: only set JSStreamWrap write req after
Otherwise `this[kCurrentWriteRequest]` is set to a value even
if one of the `write` calls throws.
This is needed in order not to break tests in a later commit.
PR-URL: #18676
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>write()
1 parent efb4646 commit fa691f7Copy full SHA for fa691f7
File tree
Expand file treeCollapse file tree
1 file changed
+3
-1
lines changedOpen diff view settings
Filter options
- lib/internal
Expand file treeCollapse file tree
1 file changed
+3
-1
lines changedOpen diff view settings
Collapse file
lib/internal/wrap_js_stream.js
Copy file name to clipboardExpand all lines: lib/internal/wrap_js_stream.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
137 | 137 | |
138 | 138 | |
139 | 139 | |
140 | | - |
141 | 140 | |
142 | 141 | |
143 | 142 | |
| ||
149 | 148 | |
150 | 149 | |
151 | 150 | |
| 151 | + |
| 152 | + |
| 153 | + |
152 | 154 | |
153 | 155 | |
154 | 156 | |
|
0 commit comments