blob: 45a474724de380aa7a033c760d86768600a0950d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// If frame.onStep returns {return:val}, the frame returns.
var g = newGlobal();
g.eval("function f(x) {\n" +
" var a = x * x;\n" +
" return a;\n" +
"}\n");
var dbg = Debugger(g);
dbg.onEnterFrame = function (frame) {
frame.onStep = function () { return {return: "pass"}; };
};
assertEq(g.f(4), "pass");
|