Skip to content

Commit

Permalink
src: set --rehash-snapshot explicitly
Browse files Browse the repository at this point in the history
To prepare for https://chromium-review.googlesource.com/c/v8/v8/+/4839486

PR-URL: #49556
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
joyeecheung authored and ruyadorno committed Sep 28, 2023
1 parent 667a924 commit fb21062
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fb21062

Please sign in to comment.