summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/baseline/bug842431-1.js
blob: 64984b02fca1e78c16a76d3068992c97aeb8ad06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| error:123
var g = newGlobal();
g.eval('function f() { var y; debugger; }');

var dbg = new Debugger(g);

dbg.onDebuggerStatement = function handleDebugger(frame) {
    frame.onPop = function(c) {
	this.eval('y = 33');
	return {throw: 123};
    }
};

g.f();