method ReplSession.alive
ReplSession.alive(): boolean

Whether there is still a page to evaluate in.

False once the browser has gone — crashed, killed, or closed by hand. Asked of the handles rather than inferred from an error message, because a failed command means "that did not work" and this means "nothing will".

Return Type

boolean

Usage

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