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

Unified Diff: test/inspector/debugger/async-stack-await.js

Issue 2648873002: [inspector] added creation frame for async call chains for promises (Closed)
Patch Set: removed redundant async call chains Created 3 years, 11 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: test/inspector/debugger/async-stack-await.js
diff --git a/test/inspector/debugger/async-stack-await.js b/test/inspector/debugger/async-stack-await.js
index a7eb741904b0015378eccb6d173f8bfbef36f4bc..32da74a40e85f180bdf3f9dc11c4dab24984fa92 100644
--- a/test/inspector/debugger/async-stack-await.js
+++ b/test/inspector/debugger/async-stack-await.js
@@ -30,7 +30,13 @@ Protocol.Debugger.onPaused(message => {
InspectorTest.logCallFrames(message.params.callFrames);
var asyncStackTrace = message.params.asyncStackTrace;
while (asyncStackTrace) {
- InspectorTest.log(`-- ${asyncStackTrace.description} --`);
+ if (asyncStackTrace.promiseCreationFrame) {
+ var frame = asyncStackTrace.promiseCreationFrame;
+ InspectorTest.log(`-- ${asyncStackTrace.description} (${frame.url
+ }:${frame.lineNumber}:${frame.columnNumber})--`);
+ } else {
+ InspectorTest.log(`-- ${asyncStackTrace.description} --`);
+ }
InspectorTest.logCallFrames(asyncStackTrace.callFrames);
asyncStackTrace = asyncStackTrace.parent;
}

Powered by Google App Engine
This is Rietveld 408576698