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);