summaryrefslogtreecommitdiff
path: root/deps/v8/test/inspector/runtime/terminate-execution.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/inspector/runtime/terminate-execution.js')
-rw-r--r--deps/v8/test/inspector/runtime/terminate-execution.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/deps/v8/test/inspector/runtime/terminate-execution.js b/deps/v8/test/inspector/runtime/terminate-execution.js
index 8af28e4787..3fd6b60242 100644
--- a/deps/v8/test/inspector/runtime/terminate-execution.js
+++ b/deps/v8/test/inspector/runtime/terminate-execution.js
@@ -66,7 +66,19 @@ let {session, contextGroup, Protocol} =
await paused2;
Protocol.Runtime.terminateExecution().then(InspectorTest.logMessage);
await Protocol.Debugger.resume();
-
await Protocol.Runtime.disable();
+
+ InspectorTest.log('Terminate execution does not crash on destroy');
+ Protocol.Debugger.enable();
+ Protocol.Runtime.evaluate({
+ expression: `
+ while(true) {
+ let p = new Promise(resolve => setTimeout(resolve, 0));
+ await p;
+ }`
+ });
+ Protocol.Runtime.terminateExecution();
+ await Protocol.Debugger.disable();
+
InspectorTest.completeTest();
})();