process: make execve's args argument optional

Align the code with the documentation and similar methods used to
execute os commands - the `args` argument should be optional, and if
omitted, treated as an empty array (`[]`).

Fixes: https://github.com/nodejs/node/issues/58411
PR-URL: https://github.com/nodejs/node/pull/58412
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
This commit is contained in:
Allon Murienik 2025-07-26 05:35:57 +03:00 committed by GitHub
parent daa9e4bb8e
commit a480d998d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 36 additions and 1 deletions

View file

@ -1338,6 +1338,13 @@
}],
]
}, # overlapped-checker
{
'target_name': 'nop',
'type': 'executable',
'sources': [
'test/nop/nop.c',
]
}, # nop
{
'target_name': 'node_js2c',
'type': 'executable',