Skip to content
Permalink
Browse files

doc: fixed a typo in process.md

If the process was not spawned with an IPC channel, `process.send`
will be undefined and calling it as `process.send()` would throw error

PR-URL: #30277
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
harryi3t authored and MylesBorins committed Nov 6, 2019
1 parent efbe0a2 commit ca960614af363e6af4b8cf7891016031d4ed9cce
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/api/process.md
@@ -1952,7 +1952,7 @@ If Node.js is spawned with an IPC channel, the `process.send()` method can be
used to send messages to the parent process. Messages will be received as a
[`'message'`][] event on the parent's [`ChildProcess`][] object.

If Node.js was not spawned with an IPC channel, `process.send()` will be
If Node.js was not spawned with an IPC channel, `process.send` will be
`undefined`.

The message goes through serialization and parsing. The resulting message might

0 comments on commit ca96061

Please sign in to comment.
You can’t perform that action at this time.