← Back to Runtime domain

Runtime.terminateExecution

Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends.

Domain: Runtime experimental

Example Request

{
  "id": 1,
  "method": "Runtime.terminateExecution"
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Runtime.terminateExecution');
console.log(result);