We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97b1532 commit 6bd4b27Copy full SHA for 6bd4b27
core/src/main/java/org/jruby/truffle/nodes/core/FloatNodes.java
@@ -628,10 +628,12 @@ public ToINode(ToINode prev) {
628
@Specialization
629
public Object toI(double value) {
630
if (Double.isInfinite(value)) {
631
+ CompilerDirectives.transferToInterpreter();
632
throw new RaiseException(getContext().getCoreLibrary().floatDomainError("Infinity", this));
633
}
634
635
if (Double.isNaN(value)) {
636
637
throw new RaiseException(getContext().getCoreLibrary().floatDomainError("NaN", this));
638
639
0 commit comments