Commit 6a08535
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 fd05b0b commit 6a08535Copy full SHA for 6a08535
File tree
Expand file treeCollapse file tree
5 files changed
+57
-46
lines changedOpen diff view settings
Filter options
- lib
- test
- known_issues
- parallel
Expand file treeCollapse file tree
5 files changed
+57
-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 |
|---|---|---|
| ||
190 | 190 | |
191 | 191 | |
192 | 192 | |
193 | | - |
194 | | - |
195 | | - |
196 | | - |
| 193 | + |
197 | 194 | |
198 | 195 | |
| 196 | + |
| 197 | + |
| 198 | + |
199 | 199 | |
200 | 200 | |
201 | 201 | |
| ||
260 | 260 | |
261 | 261 | |
262 | 262 | |
263 | | - |
| 263 | + |
264 | 264 | |
265 | 265 | |
266 | 266 | |
267 | 267 | |
268 | 268 | |
269 | | - |
270 | | - |
271 | | - |
| 269 | + |
272 | 270 | |
| 271 | + |
| 272 | + |
273 | 273 | |
274 | 274 | |
275 | 275 | |
| ||
279 | 279 | |
280 | 280 | |
281 | 281 | |
282 | | - |
| 282 | + |
283 | 283 | |
284 | 284 | |
285 | 285 | |
286 | 286 | |
287 | 287 | |
288 | | - |
289 | | - |
290 | | - |
| 288 | + |
291 | 289 | |
| 290 | + |
| 291 | + |
292 | 292 | |
293 | 293 | |
294 | 294 | |
|
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+14-7Lines changed: 14 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 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
15 | 19 | |
16 | | - |
| 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