Source code
Revision control
Copy as Markdown
Other Tools
// 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)");