Index: LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-pause.html |
diff --git a/LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-pause.html b/LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-pause.html |
index a7420df5dbf95a89a4c56d5ef8425c9fd9399d3d..846d4698838876f8740ece3a4a3cad03c409b114 100644 |
--- a/LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-pause.html |
+++ b/LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-pause.html |
@@ -34,6 +34,14 @@ function runPromises(source) |
reject(new Error(source + ".err2")); |
} |
+function runPromisesFromInspector() |
+{ |
+ // setTimeout to cut off VM call frames from the stack trace. |
+ setTimeout(function timeout() { |
+ runPromises("inspector") |
+ }, 0); |
+} |
+ |
function test() |
{ |
InspectorTest.setQuiet(true); |
@@ -47,7 +55,7 @@ function test() |
function didPause(callFrames, reason, breakpointIds, asyncStackTrace) |
{ |
- InspectorTest.evaluateInPage("runPromises('inspector')", resumeExecution); |
+ InspectorTest.evaluateInPage("runPromisesFromInspector()", resumeExecution); |
} |
function resumeExecution() |