Skip to content

Commit 8fcb450

Browse files
Harendra Singhaddaleax
Harendra Singh
authored andcommitted
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>
1 parent ad9f737 commit 8fcb450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/process.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@ If Node.js is spawned with an IPC channel, the `process.send()` method can be
19571957
used to send messages to the parent process. Messages will be received as a
19581958
[`'message'`][] event on the parent's [`ChildProcess`][] object.
19591959

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

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

0 commit comments

Comments
 (0)