summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1231386.js
blob: 01bbee81cfe981747394eed5f71ba490b85df8cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| slow

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()
}));