| Index: test/inspector/protocol-test.js
|
| diff --git a/test/inspector/protocol-test.js b/test/inspector/protocol-test.js
|
| index 37e6447f79235410871e23ffebe0d79bb5832674..a30068faf77202892aeb23710581c14ddf56aca3 100644
|
| --- a/test/inspector/protocol-test.js
|
| +++ b/test/inspector/protocol-test.js
|
| @@ -112,6 +112,21 @@ InspectorTest.logCallFrames = function(callFrames)
|
| }
|
| }
|
|
|
| +InspectorTest.logAsyncStackTrace = function(asyncStackTrace)
|
| +{
|
| + while (asyncStackTrace) {
|
| + 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;
|
| + }
|
| +}
|
| +
|
| InspectorTest.completeTest = function()
|
| {
|
| Protocol.Debugger.disable().then(() => quit());
|
|
|