blob: 79b5ff8a15b26bf8edfcd23dd38e641e31801719 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// frame.eval() throws if frame is not live
load(libdir + "asserts.js");
var g = newGlobal({newCompartment: true});
var dbg = new Debugger(g);
var f;
dbg.onDebuggerStatement = function (frame) { f = frame; };
g.eval("debugger;");
assertThrowsInstanceOf(function () { f.eval("2 + 2"); }, Error);
|