Index: test/inspector/debugger/async-stack-for-promise.js |
diff --git a/test/inspector/debugger/async-stack-for-promise.js b/test/inspector/debugger/async-stack-for-promise.js |
index 705bb19086317fc8c3db1cd08bd99923ff941762..a627747a5595857198c90b4d7b6f2526660ab996 100644 |
--- a/test/inspector/debugger/async-stack-for-promise.js |
+++ b/test/inspector/debugger/async-stack-for-promise.js |
@@ -222,12 +222,7 @@ function reject() { |
InspectorTest.setupScriptMap(); |
Protocol.Debugger.onPaused(message => { |
InspectorTest.logCallFrames(message.params.callFrames); |
- var asyncStackTrace = message.params.asyncStackTrace; |
- while (asyncStackTrace) { |
- InspectorTest.log(`-- ${asyncStackTrace.description} --`); |
- InspectorTest.logCallFrames(asyncStackTrace.callFrames); |
- asyncStackTrace = asyncStackTrace.parent; |
- } |
+ InspectorTest.logAsyncStackTrace(message.params.asyncStackTrace); |
InspectorTest.log(''); |
Protocol.Debugger.resume(); |
}); |