Skip to content

Commit 2ca6ef3

Browse files
committed
Support "Terminate current JavaScript call"
1 parent 1ab1bee commit 2ca6ef3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/debug/server_cdp.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,9 @@ def process
329329
when 'Runtime.getIsolateId'
330330
send_response req,
331331
id: SecureRandom.hex
332+
when 'Runtime.terminateExecution'
333+
@q_msg << 'kill!'
334+
send_response req
332335
when 'Page.startScreencast', 'Emulation.setTouchEmulationEnabled', 'Emulation.setEmitTouchEventsForMouse',
333336
'Runtime.compileScript', 'Page.getResourceContent', 'Overlay.setPausedInDebuggerMessage',
334337
'Runtime.releaseObjectGroup', 'Runtime.discardConsoleEntries', 'Log.clear'

0 commit comments

Comments
 (0)