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: https://github.com/nodejs/node/pull/30277
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Harendra Singh authored and Anna Henningsen committed 2019-11-30 19:37:43 +01:00
1 parent ad9f737e44
commit 8fcb450934
1 file changed
+1 -1
+1 -1
View File
@@ -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