Skip to content

Commit

Permalink
doc: fixed a typo in process.md
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Harendra Singh authored and addaleax committed Nov 30, 2019
1 parent ad9f737 commit 8fcb450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,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
Expand Down

0 comments on commit 8fcb450

Please sign in to comment.