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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp

Issue 2144093002: Adding checks for V8 functions returning Maybe<bool> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding NOTREACHED if Delete result IsNothing for LazyFieldGetterInner Created 4 years, 5 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
Index: third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp
index fa01f5fbc4fbf61a5822e3189056013210ad8edb..05cb4bb97c85652a2629a6856b46f668163c531b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp
@@ -113,10 +113,14 @@ void ScriptPromisePropertyBase::resolveOrRejectInternal(v8::Local<v8::Promise::R
ASSERT_NOT_REACHED();
break;
case Resolved:
- resolver->Resolve(context, resolvedValue(m_isolate, context->Global()));
+ if (resolver->Resolve(context, resolvedValue(m_isolate, context->Global())).IsNothing()) {
+ // TODO: What action, if any, should be taken here?
+ }
break;
case Rejected:
- resolver->Reject(context, rejectedValue(m_isolate, context->Global()));
+ if (resolver->Reject(context, rejectedValue(m_isolate, context->Global())).IsNothing()) {
+ // TODO: What action, if any, should be taken here?
+ }
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698