From 071b31808e7af2d2fc0b573afc70769e7514bcb1 Mon Sep 17 00:00:00 2001 From: Ulan Degenbaev Date: Tue, 30 Jun 2020 18:43:10 +0200 Subject: [PATCH] Exit after printing v8 help V8 es not exit the process after handling --help anymore: https://chromium-review.googlesource.com/c/v8/v8/+/2276276 --- src/node.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/node.cc b/src/node.cc index fbb86b12ae77b4..43c44e59b58ffa 100644 --- a/src/node.cc +++ b/src/node.cc @@ -939,9 +939,8 @@ void Init(int* argc, } if (per_process::cli_options->print_v8_help) { - // Doesn't return. V8::SetFlagsFromString("--help", static_cast(6)); - UNREACHABLE(); + exit(0); } *argc = argv_.size();