summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1808210.js
blob: 4e47a5ba1089aa2960d42a44189bfa133b0e3542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| --ion-offthread-compile=off; --fast-warmup; --blinterp-warmup-threshold=1; --blinterp-eager

let a = {};
let b = {};
class Foo {}
let bar = function() { return new Foo(); };
for (let i = 0; i < 100; i++) {
  for (let j = 0; j < i; j++) {
    b.x + a.x;
    bar();
  }
  for (let k = 0; k < 100; k++) {}
  bar();
}