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