summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1688346.js
blob: 0e3bbcdd054518140f86524b149c8b3ff21b4e4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function f(x) {
    let y = Math.trunc(x);
    return y - y;
}

with ({}) {}

for (var i = 0; i < 50; i++) {
    f(0.1);
}

assertEq(f(NaN), NaN);