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: nodejs#49556
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
joyeecheung authored and alexfernandez committed Nov 1, 2023
1 parent 3890a1b commit cd46a2e
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 cd46a2e

Please sign in to comment.