summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1231386.js
blob: c2dc55b7348a898d874bd26d5e48e59a9a2f6e7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| slow; skip-if: !('oomTest' in this)

function f1() {}
function f2() {}
r = [function() {}, function() {}, [], function() {}, f1, function() {}, f2];
l = [0];
function f3() {
    return {
        a: 0
    };
}
var x = f3();
var h = newGlobal({newCompartment: true});
var dbg = new Debugger;
dbg.addDebuggee(h);
oomTest(() => getBacktrace({
    thisprops: gc()
}));