summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1768813.js
blob: 531322cc31f35c5e2c09ac520ffac5c26ce12ed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
gczeal(0);

function f() {
  let global = newGlobal({newCompartment: true});
  global.a = Debugger(newGlobal({newCompartment: true}));
  global.evaluate("grayRoot()");
}

function g(i) {
  const str = " ".padStart(10000, " ");
  str.startsWith("1");
  if (i > 0) {
    g(i - 1);
  }
}

f();
gczeal(11,3);
g(5000);