summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1293542.js
blob: 38c27125e459b7642912b3ed1e4cb8ac55d0c96f (plain)
1
2
3
4
5
6
7
8
9
10
11
try { eval("3 ** 4") } catch (e) {
    if (!(e instanceof SyntaxError))
        throw e;
    quit();
}

var f = new Function("x", "return (x ** (1 / ~4294967297)) && x");
for (var i = 0; i < 2; ++i) {
    assertEq(f(-Infinity), 0);
}