terminateExecution

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

Official doc