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

Unified Diff: Source/bindings/core/v8/DebuggerScript.js

Issue 433653003: Support Promises event-based instrumentation on backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove TODO Created 6 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: Source/bindings/core/v8/DebuggerScript.js
diff --git a/Source/bindings/core/v8/DebuggerScript.js b/Source/bindings/core/v8/DebuggerScript.js
index dc3405e1cc6361d45cabcb618dd92336719444fc..98f398b2eb87533b0fde55f2b280a6680bf9c899 100644
--- a/Source/bindings/core/v8/DebuggerScript.js
+++ b/Source/bindings/core/v8/DebuggerScript.js
@@ -508,6 +508,16 @@ DebuggerScript._buildScopeObject = function(scopeType, scopeObject)
return result;
}
+DebuggerScript.getPromiseDetails = function(eventData)
+{
+ return {
+ "promise": eventData.promise().value(),
+ "parentPromise": eventData.parentPromise().value(),
+ "status": eventData.status(),
+ "value": eventData.value().value()
+ };
+}
+
// We never resolve Mirror by its handle so to avoid memory leaks caused by Mirrors in the cache we disable it.
ToggleMirrorCache(false);
« no previous file with comments | « no previous file | Source/bindings/core/v8/ScriptDebugServer.h » ('j') | Source/bindings/core/v8/ScriptDebugServer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698