summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Frame-eval-02.js
blob: 541e19bdcd1055e1994b1b9aea431f9a55dad8d7 (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();
var dbg = new Debugger(g);
var f;
dbg.onDebuggerStatement = function (frame) { f = frame; };
g.eval("debugger;");
assertThrowsInstanceOf(function () { f.eval("2 + 2"); }, Error);