8 lines
202 B
JavaScript
8 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;
|
||
|
}
|
||
|
}
|