summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1805881.js
blob: 8f3df4219876baea7cf63c44180298be0b43dd60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// |jit-test| --baseline-warmup-threshold=10; --ion-warmup-threshold=100

function blackhole() {
  with ({});
}

function main() {
  for (let i = 0; i < 100; i++) {
    try {
      const v3 = 0..toString(i);
      for (let j = 0; j < 100; j++) {
      }
      blackhole(v3);
    } catch {
    }
    for (let j = 0; j < 6; ++j) {
    }
  }
}

main();