summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Frame-eval-01.js
blob: 49a98b60b76635dae961ad93c580c3c3ae5e9755 (plain)
1
2
3
4
5
6
7
8
// simplest possible test of Debugger.Frame.prototype.eval

var g = newGlobal();
var dbg = new Debugger(g);
var c;
dbg.onDebuggerStatement = function (frame) { c = frame.eval("2 + 2"); };
g.eval("debugger;");
assertEq(c.return, 4);