You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
child_process.exec' documentation states that the stdout and stderr parameters are instances of Buffer by default, but it's actually not the case. They are instances of Buffer only if { encoding: null} is passed as options.
The documentation of v0.12.x should be fixed to reflect this behavior.
The original intent was that stdout and stderr parameters would be instances of Buffer. If that still holds true, then the change in behavior should be done in master post v0.12.x.
Adding to milestone 0.12.2 as it's a quick change.
The text was updated successfully, but these errors were encountered:
Changed child_process.exec documentation to reflect that the parameters stdout and stderr are instances of Buffer only if {encoding: null}. Otherwise, they are instances of String with the encoding.
Fixes#9434
removed .DS_Store
PR-URL: #14088
Reviewed-By: jasnell - James M Snell <[email protected]>
Reviewed-By: piscisaureus - Bert Belder <[email protected]>
jBarz
pushed a commit
to ibmruntimes/node
that referenced
this issue
Nov 4, 2016
Changed child_process.exec documentation to reflect that the parameters stdout and stderr are instances of Buffer only if {encoding: null}. Otherwise, they are instances of String with the encoding.
Fixesnodejs#9434
removed .DS_Store
PR-URL: nodejs#14088
Reviewed-By: jasnell - James M Snell <[email protected]>
Reviewed-By: piscisaureus - Bert Belder <[email protected]>
child_process.exec' documentation states that the
stdout
andstderr
parameters are instances ofBuffer
by default, but it's actually not the case. They are instances ofBuffer
only if{ encoding: null}
is passed as options.The documentation of v0.12.x should be fixed to reflect this behavior.
The original intent was that
stdout
andstderr
parameters would be instances ofBuffer
. If that still holds true, then the change in behavior should be done in master post v0.12.x.Adding to milestone 0.12.2 as it's a quick change.
The text was updated successfully, but these errors were encountered: