| <script src="../../http/tests/inspector/resources/inspector-test.js"></script> |
| TestPage.allowUncaughtExceptions = true; |
| TestPage.needToSanitizeUncaughtExceptionURLs = true; |
| function triggerStackOverflowException() { |
| window.addEventListener("error", (event) => { |
| TestPage.dispatchEventToFrontend("AfterError"); |
| WI.debuggerManager.allExceptionsBreakpoint.disabled = false; |
| let suite = InspectorTest.createAsyncSuite("Debugger.StackOverflowException"); |
| name: "Debugger.StackOverflowException.NoPause", |
| description: "Should not pause on a StackOverflow Exception.", |
| WI.debuggerManager.singleFireEventListener(WI.DebuggerManager.Event.Paused, (event) => { |
| InspectorTest.fail("Should not pause."); |
| InspectorTest.singleFireEventListener("AfterError", (event) => { |
| InspectorTest.pass("Should not pause on StackOverflow Exception."); |
| InspectorTest.evaluateInPage(`setTimeout(triggerStackOverflowException)`); |
| suite.runTestCasesAndFinish(); |
| <body onload="runTest()"> |
| <p>Test we do not pause on a StackOverflow Exception.</p> |