Debian Codegraph @

js/src/jit-test/tests/ion/bug1140890.js

raw
1 function isNegativeZero(x) {
2 return x===0 && (1/x)===-Infinity;
3 }
4 function f(y) {
5 return -(0 != 1 / y) - -Math.imul(1, !y)
6 }
7 x = [-0, Infinity]
8 for (var k = 0; k < 2; ++k) {
9 assertEq(isNegativeZero(f(x[k])), false);
10 }
11