Debian Codegraph @

js/src/jit-test/tests/warp/min-max-foldsTo-4.js

raw
1 with ({}); // Don't inline anything into the top-level script.
2
3 function f(x) {
4 return Math.min(Math.max(x / x, x), x);
5 }
6
7 for (var i = 0; i < 100; ++i) {
8 f(1);
9 }
10
11 assertEq(f(0), NaN);