From 963ee0bc736008e01d80fbad973f80fd021735fd Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Thu, 7 Mar 2019 14:52:31 +0100 Subject: src: rename Init and Start overloads to something more distinctive In addition, move the `--help` and `--v8-help` processing out of `StartNodeWithLoopAndArgs()` and process them earlier - right after `InitializeNodeWithArgs()`, similar to how they are handled in the legacy `Init()`. PR-URL: https://github.com/nodejs/node/pull/26499 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Refael Ackermann --- src/api/environment.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api') diff --git a/src/api/environment.cc b/src/api/environment.cc index b7a629340d..35d93f1cc8 100644 --- a/src/api/environment.cc +++ b/src/api/environment.cc @@ -225,7 +225,7 @@ Environment* CreateEnvironment(IsolateData* isolate_data, static_cast(Environment::kIsMainThread | Environment::kOwnsProcessState | Environment::kOwnsInspector)); - env->Start(per_process::v8_is_profiling); + env->InitializeLibuv(per_process::v8_is_profiling); env->ProcessCliArgs(args, exec_args); return env; } -- cgit v1.2.3