summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1720093-2.js
blob: af66f6477c427de0e18da457a589f90124497a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function throws() { with ({}) {} throw 1; }

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 {
    return throws()
  } catch {
    assertEq(obj[x], 0);
  }
}
main();