< prev index next >

src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/TypeEvaluator.java

Print this page

        

@@ -237,11 +237,11 @@
                         if (returnType == Type.BOOLEAN) {
                             // We don't have optimistic booleans. In fact, optimistic call sites getting back boolean
                             // currently deoptimize all the way to Object.
                             return Type.OBJECT;
                         }
-                        assert returnType == Type.INT || returnType == Type.LONG || returnType == Type.NUMBER || returnType == Type.OBJECT;
+                        assert returnType == Type.INT || returnType == Type.NUMBER || returnType == Type.OBJECT;
                         return returnType;
                     }
                 }
             }
         }
< prev index next >