From d005f382cdcec7dff1d61cf5ab3604e55f004471 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Wed, 20 Mar 2019 07:55:59 +0800 Subject: 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 Reviewed-By: Benjamin Gruenbaum --- src/env-inl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/env-inl.h') 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 Environment::options() { return options_; } +inline const std::vector& Environment::argv() { + return argv_; +} + inline const std::vector& Environment::exec_argv() { return exec_argv_; } -- cgit v1.2.3