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

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