summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1563051.js
blob: cf3b40019a3940fac88ae0d60272aa6f0d05fad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| error:123
var g = newGlobal({newCompartment: true});
var dbg = new Debugger;
dbg.addDebuggee(g);
dbg.onEnterFrame = function(frame) {
    frame.onPop = function() {
        dbg.removeDebuggee(g);
        throw 123;
    }
}
g.eval("(function() {})()");