Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index d962338198d9b9fb3452f18ea2719aa0d86bea48..e247eb2c41c387509bb0777df3d5ace0c7f302ef 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -379,7 +379,7 @@ StartupData V8::CreateSnapshotDataBlob(const char* custom_source) { |
i::SnapshotByteSink context_sink; |
i::PartialSerializer context_ser(internal_isolate, &ser, &context_sink); |
context_ser.Serialize(&raw_context); |
- ser.SerializeWeakReferences(); |
+ ser.SerializeWeakReferencesAndDeferred(); |
result = i::Snapshot::CreateSnapshotBlob(ser, context_ser, metadata); |
} |