process: save original argv[0] · nodejs/node@2f32191 · GitHub
Skip to content

Commit 2f32191

Browse files
ppannutocjihrig
authored andcommitted
process: save original argv[0]
For historical and other reasons, node overwrites `argv[0]` on startup. See - 2c6f79c, - #7434 - #7449 - #7696 For cases where it may be useful, save the original value of `argv[0]` in `process.argv0` PR-URL: #7696 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent dedfcb7 commit 2f32191

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

doc/api/process.md

Lines changed: 20 additions & 3 deletions

lib/internal/bootstrap_node.js

Lines changed: 5 additions & 0 deletions

0 commit comments

Comments
 (0)