summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/jaeger/bug599488.js
blob: f2cf95209102f140b4ebd05dda7f13887f8faacd (plain)
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);