Index: test/mjsunit/mjsunit.js |
diff --git a/test/mjsunit/mjsunit.js b/test/mjsunit/mjsunit.js |
index faa5a43829a69f3dedbd39f3c524e6884f62e8fe..6f6e3230d57fa27265db8a74dca11168f2aa3682 100644 |
--- a/test/mjsunit/mjsunit.js |
+++ b/test/mjsunit/mjsunit.js |
@@ -223,7 +223,7 @@ var assertUnreachable; |
assertSame = function assertSame(expected, found, name_opt) { |
if (found === expected) { |
if (expected !== 0 || (1 / expected) == (1 / found)) return; |
- } else if (isNaN(expected) && isNaN(found)) { |
+ } else if ((expected !== expected) && (found !== found)) { |
rossberg
2011/10/28 09:05:18
Somebody should pull IEEE to court for their NaN s
|
return; |
} |
fail(PrettyPrint(expected), found, name_opt); |