summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1432764.js
blob: e4f7a507fbe2aa06d2689effd3e8dae6e651a63a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| error: uncaught exception
g = newGlobal({newCompartment: true});
g.parent = this;
g.eval(`
    Debugger(parent).onExceptionUnwind = function(frame) { frame.older };
`);

var handler = {
    has: function(tgt, key) { if (key == 'throw') { throw null; } }
};

var proxy = new Proxy({}, handler);

for (let k of ['foo', 'throw']) {
    k in proxy;
}