summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1693062-01.js
blob: d670360d31ab482b71b38939d6ba42427ba7c2c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function foo(trigger) {
    var x = Math.fround(1.5);
    var a = Math.sqrt(2**53);
    if (trigger) {
	x = a + 1;
    }
    return x;
}

with ({}) {}
for (var i = 0; i < 40; i++) {
    foo(false);
}
assertEq(foo(true), Math.sqrt(2**53) + 1);