1.1 --- a/rt/emul/mini/src/main/java/java/lang/Double.java Sun May 17 10:16:42 2015 +0200
1.2 +++ b/rt/emul/mini/src/main/java/java/lang/Double.java Sun May 17 13:11:31 2015 +0200
1.3 @@ -551,9 +551,8 @@
1.4 * @return {@code true} if the value of the argument is NaN;
1.5 * {@code false} otherwise.
1.6 */
1.7 - static public boolean isNaN(double v) {
1.8 - return (v != v);
1.9 - }
1.10 + @JavaScriptBody(args = { "v" }, body = "return isNaN(v);")
1.11 + static native public boolean isNaN(double v);
1.12
1.13 /**
1.14 * Returns {@code true} if the specified number is infinitely