Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index 91f0286e996c2717e11d3afbbd1334826ed1ada9..e7c5d0d691f5358db854baba4cf818553f4c58bd 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -201,6 +201,9 @@ void HeapObject::HeapObjectVerify() { |
case JS_WEAK_SET_TYPE: |
JSWeakSet::cast(this)->JSWeakSetVerify(); |
break; |
+ case JS_PROMISE_CAPABILITY_TYPE: |
+ JSPromiseCapability::cast(this)->JSPromiseCapabilityVerify(); |
+ break; |
case JS_PROMISE_TYPE: |
JSPromise::cast(this)->JSPromiseVerify(); |
break; |
@@ -883,6 +886,14 @@ void JSWeakSet::JSWeakSetVerify() { |
CHECK(table()->IsHashTable() || table()->IsUndefined(GetIsolate())); |
} |
+void JSPromiseCapability::JSPromiseCapabilityVerify() { |
+ CHECK(IsJSPromiseCapability()); |
+ JSObjectVerify(); |
+ VerifyPointer(promise()); |
+ VerifyPointer(resolve()); |
+ VerifyPointer(reject()); |
+} |
+ |
void JSPromise::JSPromiseVerify() { |
CHECK(IsJSPromise()); |
JSObjectVerify(); |