summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug878429.js
blob: edbb0523bf3f5366da013700b5e2da6aed9d8340 (plain)
1
2
3
4
5
6
7
8
9
function negZeroMinusNegZero()
{
  var x = -0.0;
  var y = -0.0;
  return +(x - y);
}

assertEq(1 / negZeroMinusNegZero(), Infinity);
assertEq(1 / negZeroMinusNegZero(), Infinity);