summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1593975.js
blob: 69ebcafb946296e53541695ccbd176d63a49536b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// |jit-test| error: ReferenceError
function runtest(func) {
    func();
}
const g1 = newGlobal({
    newCompartment: true
});
function transplantMarking() {
    const vals = {};
    vals.map = new WeakMap();
    enqueueMark(vals.map);
    enqueueMark("yield");
    enqueueMark("enter-weak-marking-mode");
}
if (this.enqueueMark) {
  enqueueMark("enter-weak-marking-mode");
  runtest(transplantMarking);
  egc = 60;
  gcslice(egc * 100);
}
x();