summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Frame-eval-04.js
blob: 93d2433e20e54dcffb1586bcf3f8a4b944d419fb (plain)
1
2
3
4
5
6
7
8
9
10
11
// frame.eval SyntaxErrors are reflected, not thrown

var g = newGlobal();
var dbg = new Debugger(g);
var exc, SEp;
dbg.onDebuggerStatement = function (frame) {
    exc = frame.eval("#$@!").throw;
    SEp = frame.eval("SyntaxError.prototype").return;
};
g.eval("debugger;");
assertEq(exc.proto, SEp);