summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1720093-1.js
blob: 8f2286c117f9782757c474c8a6c79673241542a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function main() {
  let obj = {2294967295: 0, 2294967296: 1};
  let x;

  for (let i = 0; i < 110; i++) {
    let c = 2294967296;
    x = --c;
    Math.fround(0);
  }

  try {
    throw 1;
  } catch {
    assertEq(obj[x], 0);
  }
}
main();