Skip to content

doc: fix exec stdout & stderr default type in child_process #6666

Description

@sartrey
  • v4.4.4:
  • Darwin:

There is an inaccurate line in child_process documents.
** origin text **
If encoding is 'buffer', Buffer objects will be passed to
the callback instead

Actually, if encoding parameter can not be identified as encoding (Buffer.isEncoding)
exec will also output buffer rather than string

Could I provide a pr to fix the document?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    child_processIssues and PRs related to the child_process subsystem.docIssues and PRs related to Node.js documentation.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions