Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-05-20 14:06:55 +0300
committerJoyee Cheung <joyeec9h3@gmail.com>2019-06-03 18:27:48 +0300
commitbda7da34c6f8edabf45623acb21a410c76a33bff (patch)
treeb3d4c8e40d9c316f3e620bf6f6492302b936512a /src/node_process.h
parentf0018a5152a9faaf2104d62f3152776a60f59390 (diff)
src: inline ProcessCliArgs in the Environment constructor
Inline `ProcessCliArgs()` in the `Environment` constructor, and emit the `Environment` creation trace events with the arguments earlier. Remove the unused arguments passed to `CreateProcessObject()` since these are now attached to process in `PatchProcessObject()` during pre-execution instead. PR-URL: https://github.com/nodejs/node/pull/27539 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_process.h')
-rw-r--r--src/node_process.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/node_process.h b/src/node_process.h
index f01445b3c51..48d5aa704f7 100644
--- a/src/node_process.h
+++ b/src/node_process.h
@@ -31,10 +31,7 @@ v8::Maybe<bool> ProcessEmitDeprecationWarning(Environment* env,
const char* warning,
const char* deprecation_code);
-v8::MaybeLocal<v8::Object> CreateProcessObject(
- Environment* env,
- const std::vector<std::string>& args,
- const std::vector<std::string>& exec_args);
+v8::MaybeLocal<v8::Object> CreateProcessObject(Environment* env);
void PatchProcessObject(const v8::FunctionCallbackInfo<v8::Value>& args);
namespace task_queue {