Skip to content

Commit fb21062

Browse files
joyeecheungruyadorno
authored andcommittedSep 28, 2023
src: set --rehash-snapshot explicitly
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>

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎src/node.cc

+4
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,10 @@ static ExitCode InitializeNodeWithArgsInternal(
838838
V8::SetFlagsFromString(NODE_V8_OPTIONS, sizeof(NODE_V8_OPTIONS) - 1);
839839
#endif
840840

841+
// Specify this explicitly to avoid being affected by V8 changes to the
842+
// default value.
843+
V8::SetFlagsFromString("--rehash-snapshot");
844+
841845
HandleEnvOptions(per_process::cli_options->per_isolate->per_env);
842846

843847
std::string node_options;

0 commit comments

Comments
 (0)
Please sign in to comment.