method ReplSession.interrupt
ReplSession.interrupt(): Promise<void>

Stops whatever is executing in the page — the Ctrl-C of a runaway expression.

Return Type

Promise<void>

Usage

import { type ReplSession } from "lib/repl/session.ts";