Chromium Code Reviews| 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); |
|
dgozman
2017/01/24 23:57:44
Do you want to extract this whole method into Insp
kozy
2017/01/25 00:45:43
Done.
|
| 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; |
| } |