Unverified Commit a804db1a authored by Pat Pannuto's avatar Pat Pannuto Committed by Anna Henningsen
Browse files

process: save original argv[0]

For historical and other reasons, node overwrites `argv[0]` on startup.
See
 - 2c6f79c0,
 - 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: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent beea23af
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment