Skip to content

Commit aeda0c3

Browse files
joyeecheungtargos
authored andcommitted
tools: assert that the snapshot can be rehashed in node_mksnapshot
PR-URL: #28181 Refs: #27365 Refs: #17058 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Refael Ackermann (רפאל פלחי) <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 39b10ab commit aeda0c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/snapshot/snapshot_builder.cc

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ std::string SnapshotBuilder::Generate(
9696
// Must be out of HandleScope
9797
StartupData blob =
9898
creator.CreateBlob(SnapshotCreator::FunctionCodeHandling::kClear);
99+
CHECK(blob.CanBeRehashed());
99100
// Must be done while the snapshot creator isolate is entered i.e. the
100101
// creator is still alive.
101102
main_instance->Dispose();

0 commit comments

Comments
 (0)