From 17a9bfbe79be5f737d74eca4c9c56e2c84e15014 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Mon, 11 Sep 2023 14:15:36 +0200 Subject: [PATCH] src: set --rehash-snapshot explicitly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To prepare for https://chromium-review.googlesource.com/c/v8/v8/+/4839486 PR-URL: https://github.com/nodejs/node/pull/49556 Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca --- src/node.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/node.cc b/src/node.cc index a6b829c0ff2e7f..17f3829d743941 100644 --- a/src/node.cc +++ b/src/node.cc @@ -838,6 +838,10 @@ static ExitCode InitializeNodeWithArgsInternal( V8::SetFlagsFromString(NODE_V8_OPTIONS, sizeof(NODE_V8_OPTIONS) - 1); #endif + // Specify this explicitly to avoid being affected by V8 changes to the + // default value. + V8::SetFlagsFromString("--rehash-snapshot"); + HandleEnvOptions(per_process::cli_options->per_isolate->per_env); std::string node_options;