agsamantha/node_modules/jintr/dist/nodes/ThrowStatement.js

8 lines
202 B
JavaScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
import BaseJSNode from './BaseJSNode.js';
export default class ThrowStatement extends BaseJSNode {
run() {
const arg = this.visitor.visitNode(this.node.argument);
throw arg;
}
}