Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: src/objects-debug.cc

Issue 2695593002: [promises] cleanup default promise handlers (Closed)
Patch Set: remove unused var Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-debug.cc
diff --git a/src/objects-debug.cc b/src/objects-debug.cc
index bc60bbaabdde53fe9fa310bc541c0407feb2d538..9c22c1b36faf8b6902383159e6f5b8805dad1dfa 100644
--- a/src/objects-debug.cc
+++ b/src/objects-debug.cc
@@ -922,10 +922,11 @@ void JSPromise::JSPromiseVerify() {
deferred_on_reject()->IsCallable() ||
deferred_on_reject()->IsFixedArray());
CHECK(fulfill_reactions()->IsUndefined(isolate) ||
- fulfill_reactions()->IsCallable() ||
+ fulfill_reactions()->IsCallable() || fulfill_reactions()->IsSymbol() ||
fulfill_reactions()->IsFixedArray());
CHECK(reject_reactions()->IsUndefined(isolate) ||
- reject_reactions()->IsCallable() || reject_reactions()->IsFixedArray());
+ reject_reactions()->IsSymbol() || reject_reactions()->IsCallable() ||
+ reject_reactions()->IsFixedArray());
}
void JSRegExp::JSRegExpVerify() {
@@ -1051,7 +1052,8 @@ void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() {
Isolate* isolate = GetIsolate();
CHECK(IsPromiseReactionJobInfo());
CHECK(value()->IsObject());
- CHECK(tasks()->IsFixedArray() || tasks()->IsCallable());
+ CHECK(tasks()->IsFixedArray() || tasks()->IsCallable() ||
+ tasks()->IsSymbol());
CHECK(deferred_promise()->IsUndefined(isolate) ||
deferred_promise()->IsJSReceiver() ||
deferred_promise()->IsFixedArray());
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698