summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1652425.js
blob: fec591948c13efece29d2d657baee6aceb6eab28 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| error: Error

function varying(mapColor, keyColor) {
  enqueueMark(`set-color-${keyColor}`);
  enqueueMark("yield");
  startgc(100000);
}
for (const mapColor of ['gray', 'black']) {
  for (const keyColor of ['gray', 'black', 'unmarked'])
    varying(mapColor, keyColor);
}