src: set --rehash-snapshot explicitly

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 <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Joyee Cheung
2023-09-11 14:15:36 +02:00
committed by GitHub
parent b0edb28b63
commit 17a9bfbe79

View File

@@ -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;