UNPKG

jintr

Version:

A tiny JavaScript interpreter written in TypeScript.

8 lines (7 loc) 202 B
import BaseJSNode from './BaseJSNode.js'; export default class ThrowStatement extends BaseJSNode { run() { const arg = this.visitor.visitNode(this.node.argument); throw arg; } }