Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index 3fbfef652e089e238a720346787063f367dad048..afde76404e1dc071547081a79840a66782577420 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -912,14 +912,17 @@ void Box::BoxVerify() { |
value()->ObjectVerify(); |
} |
-void PromiseContainer::PromiseContainerVerify() { |
- CHECK(IsPromiseContainer()); |
- thenable()->ObjectVerify(); |
- then()->ObjectVerify(); |
- resolve()->ObjectVerify(); |
- reject()->ObjectVerify(); |
- before_debug_event()->ObjectVerify(); |
- after_debug_event()->ObjectVerify(); |
+void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() { |
+ Isolate* isolate = GetIsolate(); |
+ CHECK(IsPromiseResolveThenableJobInfo()); |
+ CHECK(thenable()->IsJSReceiver()); |
+ CHECK(then()->IsJSReceiver()); |
+ CHECK(resolve()->IsJSFunction()); |
+ CHECK(reject()->IsJSFunction()); |
+ CHECK(before_debug_event()->IsJSObject() || |
+ before_debug_event()->IsUndefined(isolate)); |
+ CHECK(after_debug_event()->IsJSObject() || |
+ after_debug_event()->IsUndefined(isolate)); |
} |
void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { |