summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1763012-1.js
blob: fc1ce2b5d6d48122b106e7b6146010af021dca3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// |jit-test| --fast-warmup; --no-threads

function f() {
  let counter = 0;
  for (var i = 0; i < 8; i++) {
    let x = i / i;
    for (var j = 0; j < 6; j++) {
      if (x === x) {
        if (j > 6) {} else {}
      } else {
        counter += 1;
      }
    }
  }
  return counter;
}

f();
assertEq(f(), 6);