summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1232386.js
blob: 32f6dab3fc10d4e1dcb81ff06bf23ab5c6407204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| allow-oom
if (!('oomTest' in this))
    quit();

var dbg = new Debugger;
dbg.onNewGlobalObject = function(global) {
    global.seen = true;
};

oomTest(function() {
    newGlobal({sameZoneAs: this})
});