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

Unified Diff: src/execution.cc

Issue 607913002: Report promise reject with no handler (behind a flag). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: more comments Created 6 years, 3 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/execution.h ('k') | src/factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/execution.cc
diff --git a/src/execution.cc b/src/execution.cc
index 7aa4f3341d68a4bfd3c569f4537df3db8593f3a4..ffc6342b709683a20e63b381dd8be19243838c37 100644
--- a/src/execution.cc
+++ b/src/execution.cc
@@ -539,6 +539,12 @@ MaybeHandle<Object> Execution::NewDate(Isolate* isolate, double time) {
}
+MaybeHandle<Object> Execution::PromiseHasRejectHandler(Isolate* isolate,
+ Handle<Object> promise) {
+ return Call(isolate, isolate->promise_has_reject_handler(), promise, 0, NULL);
+}
+
+
#undef RETURN_NATIVE_CALL
« no previous file with comments | « src/execution.h ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698