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

var g = newGlobal({newCompartment: true});
g.debuggeeGlobal = this;
g.eval("(" + function() {
    dbg = new Debugger(debuggeeGlobal);
    dbg.onExceptionUnwind = function(frame, exc) {
        var s = '!';
        for (var f = frame; f; f = f.older)
            debuggeeGlobal.log += s;
    };
} + ")();");
var dbg = new Debugger;
dbg.onNewGlobalObject = function(global) {
    get.seen = true;
};
oomTest(function() {
    newGlobal({sameZoneAs: this})
});