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 targos committed Dec 5, 2019
1 parent a396a5a commit fcae355
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 @@ -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
Expand Down

0 comments on commit fcae355

Please sign in to comment.