Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index 4f37c2b20dc146651f7169ad9007e8cb90bfb3a6..b21dc4e0478799216bf70d79915cd03c6d0f0d86 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -977,6 +977,7 @@ void Module::ModuleVerify() { |
void PrototypeInfo::PrototypeInfoVerify() { |
CHECK(IsPrototypeInfo()); |
+ CHECK(weak_cell()->IsWeakCell() || weak_cell()->IsUndefined(GetIsolate())); |
if (prototype_users()->IsWeakFixedArray()) { |
WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); |
} else { |