revert Asserts.js changes
authorDan Vanderkam <danvk@google.com>
Mon, 8 Aug 2011 15:02:02 +0000 (11:02 -0400)
committerDan Vanderkam <danvk@google.com>
Mon, 8 Aug 2011 15:02:02 +0000 (11:02 -0400)
auto_tests/lib/Asserts.js

index b06ff29..b3ed441 100644 (file)
@@ -178,11 +178,6 @@ function compare_(expected, actual) {
     return false;
   }
 
-  if (isNaN(expected) && isNaN(actual)) {
-    // This has to be special-cased because (NaN === NaN) == false.
-    return true;
-  }
-
   var key = null;
   var actualLength   = 0;
   var expectedLength = 0;