Skip to content

Commit fcae355

Browse files
Harendra Singhtargos
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 <[email protected]>
1 parent a396a5a commit fcae355

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
@@ -1952,7 +1952,7 @@ If Node.js is spawned with an IPC channel, the `process.send()` method can be
19521952
used to send messages to the parent process. Messages will be received as a
19531953
[`'message'`][] event on the parent's [`ChildProcess`][] object.
19541954

1955-
If Node.js was not spawned with an IPC channel, `process.send()` will be
1955+
If Node.js was not spawned with an IPC channel, `process.send` will be
19561956
`undefined`.
19571957

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

0 commit comments

Comments
 (0)