Index: src/snapshot/serializer-common.cc |
diff --git a/src/snapshot/serializer-common.cc b/src/snapshot/serializer-common.cc |
index 4afaa207d45954eed47bf51369cb1a71534d1546..ec97507edf565775769972c557ba9545c75480bb 100644 |
--- a/src/snapshot/serializer-common.cc |
+++ b/src/snapshot/serializer-common.cc |
@@ -67,7 +67,7 @@ void SerializerDeserializer::Iterate(Isolate* isolate, ObjectVisitor* visitor) { |
// During deserialization, the visitor populates the partial snapshot cache |
// and eventually terminates the cache with undefined. |
visitor->VisitPointer(&cache->at(i)); |
- if (cache->at(i)->IsUndefined()) break; |
+ if (cache->at(i)->IsUndefined(isolate)) break; |
} |
} |