File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -160,8 +160,8 @@ The `stdout` and `stderr` arguments passed to the callback will contain the
160
160
stdout and stderr output of the child process. By default, Node.js will decode
161
161
the output as UTF-8 and pass strings to the callback. The ` encoding ` option
162
162
can be used to specify the character encoding used to decode the stdout and
163
- stderr output. If ` encoding ` is ` 'buffer' ` , ` Buffer ` objects will be passed to
164
- the callback instead.
163
+ stderr output. If ` encoding ` is ` 'buffer' ` , or an unrecognized character
164
+ encoding, ` Buffer ` objects will be passed to the callback instead.
165
165
166
166
The ` options ` argument may be passed as the second argument to customize how
167
167
the process is spawned. The default options are:
@@ -230,8 +230,8 @@ The `stdout` and `stderr` arguments passed to the callback will contain the
230
230
stdout and stderr output of the child process. By default, Node.js will decode
231
231
the output as UTF-8 and pass strings to the callback. The ` encoding ` option
232
232
can be used to specify the character encoding used to decode the stdout and
233
- stderr output. If ` encoding ` is ` 'buffer' ` , ` Buffer ` objects will be passed to
234
- the callback instead.
233
+ stderr output. If ` encoding ` is ` 'buffer' ` , or an unrecognized character
234
+ encoding, ` Buffer ` objects will be passed to the callback instead.
235
235
236
236
### child_process.fork(modulePath[ , args] [ , options ] )
237
237
You can’t perform that action at this time.
0 commit comments