Bug 1334314 - Fix debug mode OSR exception handling for IteratorClose trynotes

Issue #74
This commit is contained in:
janekptacijarabaci 2018-03-25 14:49:32 +02:00 • committed by Roy Tam
commit b0960bf497
2 changed files with 48 additions and 9 deletions

View file

@ -0,0 +1,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();