1 2 3 4 5 6 7 8 9
/* Don't crash. */ function foo(y) { var x = y; if (x != x) return true; return false; } assertEq(foo("three"), false); assertEq(foo(NaN), true);