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 @@ -164,8 +164,8 @@ The `stdout` and `stderr` arguments passed to the callback will contain the
164
164
stdout and stderr output of the child process. By default, Node.js will decode
165
165
the output as UTF-8 and pass strings to the callback. The ` encoding ` option
166
166
can be used to specify the character encoding used to decode the stdout and
167
- stderr output. If ` encoding ` is ` 'buffer' ` , ` Buffer ` objects will be passed to
168
- the callback instead.
167
+ stderr output. If ` encoding ` is ` 'buffer' ` , or an unrecognized character
168
+ encoding, ` Buffer ` objects will be passed to the callback instead.
169
169
170
170
The ` options ` argument may be passed as the second argument to customize how
171
171
the process is spawned. The default options are:
@@ -233,8 +233,8 @@ The `stdout` and `stderr` arguments passed to the callback will contain the
233
233
stdout and stderr output of the child process. By default, Node.js will decode
234
234
the output as UTF-8 and pass strings to the callback. The ` encoding ` option
235
235
can be used to specify the character encoding used to decode the stdout and
236
- stderr output. If ` encoding ` is ` 'buffer' ` , ` Buffer ` objects will be passed to
237
- the callback instead.
236
+ stderr output. If ` encoding ` is ` 'buffer' ` , or an unrecognized character
237
+ encoding, ` Buffer ` objects will be passed to the callback instead.
238
238
239
239
### child_process.fork(modulePath[ , args] [ , options ] )
240
240
<!-- YAML
You can’t perform that action at this time.
0 commit comments