gecko-dev/js/js2/java/ThrowNode.java
1999-05-28 19:00:48 +00:00

13 lines
207 B
Java

class ThrowNode extends ControlNode {
ThrowNode(ExpressionNode e)
{
super(e);
}
ControlNode eval(Environment theEnv)
{
throw new JSException(expr.eval(theEnv));
}
}