Index: src/snapshot/partial-serializer.cc |
diff --git a/src/snapshot/partial-serializer.cc b/src/snapshot/partial-serializer.cc |
index 8aeeed15e9a4f399f39e588499ed43b3294fcefe..fc25191395cb9e363976ba2a8b3ed59edd270057 100644 |
--- a/src/snapshot/partial-serializer.cc |
+++ b/src/snapshot/partial-serializer.cc |
@@ -34,7 +34,7 @@ void PartialSerializer::Serialize(Object** o) { |
if (context->IsNativeContext()) { |
context->set(Context::NEXT_CONTEXT_LINK, |
isolate_->heap()->undefined_value()); |
- DCHECK(!context->global_object()->IsUndefined()); |
+ DCHECK(!context->global_object()->IsUndefined(context->GetIsolate())); |
} |
} |
VisitPointer(o); |