blob: d5906791dbbdc5351d4c34e6c6086321676ee6c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Fuzz test: LiveSavedFrameCache should not be confused by eval-in-frame-prev links.
// See bug-144604-reduced.js for a more direct version.
var evalInFrame = (function (global) {
var dbgGlobal = newGlobal({newCompartment: true});
var dbg = new dbgGlobal.Debugger();
return function evalInFrame(upCount, code) {
dbg.addDebuggee(global);
var frame = dbg.getNewestFrame().older;
for (var i = 0; i < upCount; i++) {
}
var completion = frame.eval(code);
};
})(this);
enableTrackAllocations();
evalInFrame(1, "print(a)");
|