gecko-dev/js/js2/java/ThrowNode.java

13 lines
207 B
Java
Raw Normal View History

1999-05-18 22:50:53 +00:00
class ThrowNode extends ControlNode {
ThrowNode(ExpressionNode e)
{
super(e);
}
ControlNode eval(Environment theEnv)
{
1999-05-28 19:00:48 +00:00
throw new JSException(expr.eval(theEnv));
1999-05-18 22:50:53 +00:00
}
}