diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-03-20 07:55:59 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-04 05:14:52 +0800 |
commit | d005f382cdcec7dff1d61cf5ab3604e55f004471 (patch) | |
tree | 1bd90722e3a03aadfe6722d2e486185ead6eef9e /src/env-inl.h | |
parent | 10eaf6a09feee78275d5c1f84ce46815d8a8772f (diff) | |
download | android-node-v8-d005f382cdcec7dff1d61cf5ab3604e55f004471.tar.gz android-node-v8-d005f382cdcec7dff1d61cf5ab3604e55f004471.tar.bz2 android-node-v8-d005f382cdcec7dff1d61cf5ab3604e55f004471.zip |
process: store argv in Environment
This gets rid of Environment::ExecutionMode as well now that
we use the original arguments to determine execution mode.
PR-URL: https://github.com/nodejs/node/pull/26945
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'src/env-inl.h')
-rw-r--r-- | src/env-inl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/env-inl.h b/src/env-inl.h index ef13ffdcc0..bce36c0f69 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -630,6 +630,10 @@ inline std::shared_ptr<EnvironmentOptions> Environment::options() { return options_; } +inline const std::vector<std::string>& Environment::argv() { + return argv_; +} + inline const std::vector<std::string>& Environment::exec_argv() { return exec_argv_; } |