Index: src/snapshot/partial-serializer.cc |
diff --git a/src/snapshot/partial-serializer.cc b/src/snapshot/partial-serializer.cc |
index eec49c060e325e06ac9c915ea4fcbb155604924b..d1d33538ba5e28a50f20fad92485b27cfa50137a 100644 |
--- a/src/snapshot/partial-serializer.cc |
+++ b/src/snapshot/partial-serializer.cc |
@@ -74,6 +74,8 @@ void PartialSerializer::SerializeObject(HeapObject* obj, HowToCode how_to_code, |
// All the internalized strings that the partial snapshot needs should be |
// either in the root table or in the partial snapshot cache. |
DCHECK(!obj->IsInternalizedString()); |
+ // Function and object templates are not context specific. |
+ DCHECK(!obj->IsTemplateInfo()); |
if (SerializeKnownObject(obj, how_to_code, where_to_point, skip)) return; |