summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/bug1126251.js
blob: 77aa56dbeb37cd0a3911600b654520897f131635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
load(libdir + "asm.js");

// Bug 1126251
var v = asmLink(asmCompile('global', `
    "use asm";
    var frd = global.Math.fround;
    function e() {
        var x = frd(.1e+71);
        x = frd(x / x);
        return +x;
    }
    return e;
`), this)();

assertEq(v, NaN);