summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1130768.js
blob: 64f1a7c0ccea3fe8ae366cf3533035ce2c08a5a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| error:foo
var g = newGlobal({newCompartment: true});
g.parent = this;
g.eval("(" + function() {
    var dbg = new Debugger(parent);
    count = 0;
    dbg.onExceptionUnwind = function(frame) {
        frame.onPop = function() { if (count++ < 30) frame.eval("x = 3"); };
    };
} + ")()");
Object.defineProperty(this, "x", {set: [].map});
throw "foo";