blob: 9592adb67a7adf2750c7eb9e88f24f444386cad2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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})
});
|