Skip to content

Commit 2c87835

Browse files
committed
process: fix default env for process.execve
The `env` parameter for `process.execve` is documented to default to `process.env`.
1 parent ce72fcc commit 2c87835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/process/per_thread.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ function wrapProcessMethods(binding) {
279279
return true;
280280
}
281281

282-
function execve(execPath, args = [], env) {
282+
function execve(execPath, args = [], env = process.env) {
283283
emitExperimentalWarning('process.execve');
284284

285285
const { isMainThread } = require('internal/worker');

0 commit comments

Comments
 (0)