Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
process: fix default env for process.execve
The `env` parameter for `process.execve` is documented to default
to `process.env`.
  • Loading branch information
richardlau committed Sep 26, 2025
commit 2c87835628c1ee6ea9c20a6e46ca39ae68b03980
2 changes: 1 addition & 1 deletion lib/internal/process/per_thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function wrapProcessMethods(binding) {
return true;
}

function execve(execPath, args = [], env) {
function execve(execPath, args = [], env = process.env) {
Comment thread
richardlau marked this conversation as resolved.
Resolved
emitExperimentalWarning('process.execve');

const { isMainThread } = require('internal/worker');
Expand Down
Loading