summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug831087.js
blob: fb672075dffeb493048b213179dcc2f2e6c442dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function isNegZero(x) {
  return x===0 && (1/x)===-Infinity;
}

try {
    for (y = 0; y < 1; y++) {
        x = y;
    }
} catch (e) {}

function f() {
    (x /= -9)
}
f()
assertEq(isNegZero(this.x), true);