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

Unified Diff: Source/web/WebKit.cpp

Issue 625943002: Catch uncaught promise rejections from V8 and log to console. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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: Source/web/WebKit.cpp
diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp
index b29de6b6a3f9622346a4453a2f4415126e799eae..1a0fd648b93b0eac106f6606183c12879580edf7 100644
--- a/Source/web/WebKit.cpp
+++ b/Source/web/WebKit.cpp
@@ -78,6 +78,7 @@ public:
{
Microtask::performCheckpoint();
V8GCController::reportDOMMemoryUsageToV8(mainThreadIsolate());
+ V8Initializer::reportRejectedPromises();
}
};
« Source/bindings/core/v8/V8Initializer.cpp ('K') | « Source/bindings/core/v8/V8Initializer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698