mirror of https://github.com/lukechilds/node.git
Browse Source
For historical and other reasons, node overwrites `argv[0]` on startup.
See
- 2c6f79c08
,
- https://github.com/nodejs/node/issues/7434
- https://github.com/nodejs/node/pull/7449
- https://github.com/nodejs/node/pull/7696
For cases where it may be useful, save the original value of `argv[0]`
in `process.argv0`
PR-URL: https://github.com/nodejs/node/pull/7696
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6.x
Pat Pannuto
9 years ago
committed by
cjihrig
2 changed files with 25 additions and 3 deletions
Loading…
Reference in new issue