summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Frame-offset-01.js
blob: e9bfbc8100ac3187df68b24a4bf44e4799525576 (plain)
1
2
3
4
5
6
7
8
9
10
11
// frame.offset throws if !frame.live.

load(libdir + "asserts.js");

var g = newGlobal();
var dbg = Debugger(g);
var f;
dbg.onDebuggerStatement = function (frame) { f = frame; };
g.eval("debugger;");
assertEq(f.live, false);
assertThrowsInstanceOf(function () { f.offset; }, Error);