summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1652492.js
blob: a64f541a121cc245fb2c5f73381eb592a3a05c9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function f1() {
  arr = f2;
  var p = arr[(gczeal(9))|0];
}
f2 = f1;
f2();
try {
  function allocObj() { return {}; }
  {
    let obj = allocObj();
    wr = new WeakRef(obj);
  }
  clearKeptObjects();
(new obj);
} catch(exc) {}
let obj = allocObj();
wr = new WeakRef(obj);