summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1334314.js
blob: 488fc90274092ca031f9e3941fdd2c3cb996d8ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| error: TypeError

var g = newGlobal();
g.parent = this;
g.eval("new Debugger(parent).onExceptionUnwind = function () { };");

function f() {
    [[]] = [];
}
try {
    f();
} catch (e) {};
try {
    f();
} catch (e) {};
f();