ReefVM/src/exception.ts
2025-10-05 17:59:02 -07:00

8 lines
352 B
TypeScript

import { Scope } from "./scope"
export type ExceptionHandler = {
catchAddress: number // Where to jump when exception is caught
finallyAddress?: number // Where to jump for `finally` block
callStackDepth: number // Call stack depth when handler was pushed
scope: Scope // Scope to restore when catching
}