summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1689794.js
blob: 159016edb8f08895140fae33b4409e3f4dfc9b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// |jit-test| error: Error; --cpu-count=2; --fast-warmup

function main() {
  new main;
}
try { main(); } catch(exc) {}
evaluate(`
  function main() {
    function v0(v1,v2) {
      try {
        let v3 = v0();
      } catch(v28) {
        eval(\`
            v13(v11,RegExp);
        \`);
      }
    }
    new Promise(v0);
  }
  main();
  gczeal(7,1);
`);