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

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