Index: corelib/src/math.dart |
diff --git a/corelib/src/math.dart b/corelib/src/math.dart |
index b54c8f125eea6e363db8a3a0a37d825eaf64f49c..d8105e2fe908d48d953070e518e7957f99c0d1d8 100644 |
--- a/corelib/src/math.dart |
+++ b/corelib/src/math.dart |
@@ -84,7 +84,7 @@ class Math { |
} |
} |
// Check for NaN and b == -0.0. |
- if (a == 0 && b.isNegative() || b.isNan()) return b; |
+ if (a == 0 && b.isNegative() || b.isNaN()) return b; |
return a; |
} |
return a; |