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);