Commit 2aa06b9
child_process: preserve argument type
A previous fix for a `maxBuffer` bug resulted in a change to the
argument type for the `data` event on `child.stdin` and `child.stdout`
when using `child_process.exec()`.
This fixes the `maxBuffer` bug in a way that does not have that side
effect.
PR-URL: #7391
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Jackson Tian <shyvo1987@gmail.com>
Fixes: #7342
Refs: #19011 parent 4a0fb6f commit 2aa06b9Copy full SHA for 2aa06b9
File tree
Expand file treeCollapse file tree
5 files changed
+56
-46
lines changedOpen diff view settings
Filter options
- lib
- test
- known_issues
- parallel
Expand file treeCollapse file tree
5 files changed
+56
-46
lines changedOpen diff view settings
Collapse file
+12-12Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
179 | 179 | |
180 | 180 | |
181 | 181 | |
182 | | - |
183 | | - |
184 | | - |
185 | | - |
| 182 | + |
186 | 183 | |
187 | 184 | |
| 185 | + |
| 186 | + |
| 187 | + |
188 | 188 | |
189 | 189 | |
190 | 190 | |
| ||
249 | 249 | |
250 | 250 | |
251 | 251 | |
252 | | - |
| 252 | + |
253 | 253 | |
254 | 254 | |
255 | 255 | |
256 | 256 | |
257 | 257 | |
258 | | - |
259 | | - |
260 | | - |
| 258 | + |
261 | 259 | |
| 260 | + |
| 261 | + |
262 | 262 | |
263 | 263 | |
264 | 264 | |
| ||
268 | 268 | |
269 | 269 | |
270 | 270 | |
271 | | - |
| 271 | + |
272 | 272 | |
273 | 273 | |
274 | 274 | |
275 | 275 | |
276 | 276 | |
277 | | - |
278 | | - |
279 | | - |
| 277 | + |
280 | 278 | |
| 279 | + |
| 280 | + |
281 | 281 | |
282 | 282 | |
283 | 283 | |
|
Collapse file
test/known_issues/test-child-process-max-buffer.js
Copy file name to clipboardExpand all lines: test/known_issues/test-child-process-max-buffer.js-16Lines changed: 0 additions & 16 deletions
This file was deleted.
Collapse file
test/parallel/test-child-process-exec-maxBuffer.js
Copy file name to clipboard+31Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
Collapse file
…child-process-exec-stdout-data-string.js …rocess-exec-stdout-stderr-data-string.jstest/parallel/test-child-process-exec-stdout-data-string.js renamed to test/parallel/test-child-process-exec-stdout-stderr-data-string.js test/parallel/test-child-process-exec-stdout-data-string.js renamed to test/parallel/test-child-process-exec-stdout-stderr-data-string.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-exec-stdout-stderr-data-string.js+13-7Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
| 7 | + |
| 8 | + |
12 | 9 | |
13 | 10 | |
14 | | - |
| 11 | + |
| 12 | + |
| 13 | + |
15 | 14 | |
16 | | - |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
17 | 19 | |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
Collapse file
test/parallel/test-exec-max-buffer.js
Copy file name to clipboardExpand all lines: test/parallel/test-exec-max-buffer.js-11Lines changed: 0 additions & 11 deletions
This file was deleted.
0 commit comments