agsamantha/node_modules/jintr/dist/nodes/ThrowStatement.js
2024-10-02 15:15:21 -05:00

7 lines
202 B
JavaScript

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