diff --git a/src/node_snapshotable.cc b/src/node_snapshotable.cc index 880c50663f9aa1..f0c71042fd5e57 100644 --- a/src/node_snapshotable.cc +++ b/src/node_snapshotable.cc @@ -313,7 +313,7 @@ int SnapshotBuilder::Generate(SnapshotData* out, // Must be out of HandleScope out->v8_snapshot_blob_data = - creator.CreateBlob(SnapshotCreator::FunctionCodeHandling::kClear); + creator.CreateBlob(SnapshotCreator::FunctionCodeHandling::kKeep); // We must be able to rehash the blob when we restore it or otherwise // the hash seed would be fixed by V8, introducing a vulnerability.