summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1140890.js
blob: f58452a7bbfc9ab7e6cdf3c3e83ea99028ff59c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
function isNegativeZero(x) {
    return x===0 && (1/x)===-Infinity;
}
function f(y) {
    return -(0 != 1 / y) - -Math.imul(1, !y)
}
x = [-0, Infinity]
for (var k = 0; k < 2; ++k) {
    assertEq(isNegativeZero(f(x[k])), false);
}