michael@0: // frame.offset throws if !frame.live. michael@0: michael@0: load(libdir + "asserts.js"); michael@0: michael@0: var g = newGlobal(); michael@0: var dbg = Debugger(g); michael@0: var f; michael@0: dbg.onDebuggerStatement = function (frame) { f = frame; }; michael@0: g.eval("debugger;"); michael@0: assertEq(f.live, false); michael@0: assertThrowsInstanceOf(function () { f.offset; }, Error);