summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1768813.js
blob: 1bbe0f53aa32c3a4b612bb19bdaa6ab84ed16c58 (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(1000);