From bd072113c666f7d34c0dee0678177bda216cc79b Mon Sep 17 00:00:00 2001 From: Harendra Singh Date: Wed, 6 Nov 2019 14:36:25 +0530 Subject: 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 --- doc/api/process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/process.md b/doc/api/process.md index a9b5c4af09..217fbb66bc 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -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 -- cgit v1.2.3