mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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 <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
5 files changed
+30
-29
No files matched your search
+1
-1
@@ -284,7 +284,7 @@ void Worker::Run() {
|
||||
env_->set_abort_on_uncaught_exception(false);
|
||||
env_->set_worker_context(this);
|
||||
|
||||
env_->Start(profiler_idle_notifier_started_);
|
||||
env_->InitializeLibuv(profiler_idle_notifier_started_);
|
||||
env_->ProcessCliArgs(std::vector<std::string>{},
|
||||
std::move(exec_argv_));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user