blob: 242bce3a8587a1262f46d51cf1f022b28309acc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// |jit-test| skip-if: !('oomTest' in this)
Object.defineProperty(this, "fuzzutils", {
value: {
evaluate: function() {},
}
});
var g = newGlobal({
newCompartment: true
});
g.parent = this;
g.eval("(" + function() {
var dbg = Debugger(parent);
dbg.onEnterFrame = function(frame) {
frame.onStep = function() {}
}
} + ")()");
fuzzutils.evaluate();
oomTest(new Function(), {expectExceptionOnFailure: false});
|