src/jdk/nashorn/internal/codegen/CodeGenerator.java
Print this page
@@ -2021,12 +2021,10 @@
load(throwNode.getExpression());
method.athrow();
return false;
}
- method._new(ECMAException.class).dup();
-
final Source source = lc.getCurrentFunction().getSource();
final Expression expression = throwNode.getExpression();
final int position = throwNode.position();
final int line = throwNode.getLineNumber();
@@ -2035,11 +2033,11 @@
load(expression, Type.OBJECT);
method.load(source.getName());
method.load(line);
method.load(column);
- method.invoke(ECMAException.THROW_INIT);
+ method.invoke(ECMAException.CREATE);
method.athrow();
return false;
}