Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index 74c015be1bdf5a4fa098f87296590a3fda92f69a..c67cc1472adb85e04f348e99388d4dc3d8dc35d1 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -371,11 +371,9 @@ void FixedDoubleArray::FixedDoubleArrayVerify() { |
void JSModule::JSModuleVerify() { |
- Object* v = context(); |
- if (v->IsHeapObject()) { |
- VerifyHeapPointer(v); |
- } |
- CHECK(v->IsUndefined() || v->IsModuleContext()); |
+ VerifyObjectField(kContextOffset); |
+ VerifyObjectField(kScopeInfoOffset); |
+ CHECK(context()->IsUndefined() || context()->IsModuleContext()); |
} |