Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: utils/pub/yaml/deep_equals.dart

Issue 11227042: isEven, isOdd, isNegative, isMaxValue, isMinValue, isInfinite, isPositive, isSingleValue. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: utils/pub/yaml/deep_equals.dart
diff --git a/utils/pub/yaml/deep_equals.dart b/utils/pub/yaml/deep_equals.dart
index 76102a32f9efddd591fcb780d5471118bac69f3a..a402c1421cdbd5c73fc605feeb43890acbe50276 100644
--- a/utils/pub/yaml/deep_equals.dart
+++ b/utils/pub/yaml/deep_equals.dart
@@ -71,6 +71,6 @@ bool _mapEquals(Map map1, Map map2, List parents1, List parents2) {
* that it considers NaN to be equal to itself.
*/
bool _doubleEquals(double d1, double d2) {
- if (d1.isNaN() && d2.isNaN()) return true;
+ if (d1.isNaN && d2.isNaN) return true;
return d1 == d2;
}

Powered by Google App Engine
This is Rietveld 408576698