diff options
Diffstat (limited to 'deps/v8/test/inspector/runtime/terminate-execution.js')
-rw-r--r-- | deps/v8/test/inspector/runtime/terminate-execution.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/v8/test/inspector/runtime/terminate-execution.js b/deps/v8/test/inspector/runtime/terminate-execution.js index feaf52eb2c..8af28e4787 100644 --- a/deps/v8/test/inspector/runtime/terminate-execution.js +++ b/deps/v8/test/inspector/runtime/terminate-execution.js @@ -55,6 +55,18 @@ let {session, contextGroup, Protocol} = .then(InspectorTest.logMessage); await Protocol.Debugger.disable(); + InspectorTest.log('Terminate execution with pending microtasks'); + Protocol.Debugger.enable(); + const paused2 = Protocol.Debugger.oncePaused(); + Protocol.Runtime.evaluate({expression: ` + Promise.resolve().then(() => { console.log('FAIL: microtask ran'); }); + debugger; + for (;;) {} + `}); + await paused2; + Protocol.Runtime.terminateExecution().then(InspectorTest.logMessage); + await Protocol.Debugger.resume(); + await Protocol.Runtime.disable(); InspectorTest.completeTest(); })(); |