Skip to content

Commit 3fc01d9

Browse files
polotekkoichik
authored andcommitted
docs: note about empty environment in child processes
Fixes #1794.
1 parent dea49e3 commit 3fc01d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/child_processes.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ Example of checking for failed exec:
137137
}
138138
});
139139

140+
Note that if spawn receives an empty options object, it will result in
141+
spawning the process with an empty environment rather than using
142+
`process.env`. This due to backwards compatibility issues with a deprecated
143+
API.
140144

141145
See also: `child_process.exec()`
142146

0 commit comments

Comments
 (0)