summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1130768.js
blob: 4c16a3132f1f38a7f5ebc447b123262325bdb810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| error:foo
var g = newGlobal();
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";