terminateExecution

suspend fun terminateExecution(mode: CommandMode = CommandMode.DEFAULT)

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