blob: 828faf1869b0514dfc77ee6bc0c0333c99db1d30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// |jit-test| error:ReferenceError; slow
if (!('oomTest' in this))
throw (new ReferenceError);
var g = newGlobal();
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({
})
});
|