From 2818e8dedb4a9a6cf40688ad42bf2be05e2f26d2 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Sun, 25 Mar 2018 14:49:32 +0200 Subject: Bug 1334314 - Fix debug mode OSR exception handling for IteratorClose trynotes Issue #74 --- js/src/jit-test/tests/ion/bug1334314.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 js/src/jit-test/tests/ion/bug1334314.js (limited to 'js/src/jit-test/tests/ion/bug1334314.js') diff --git a/js/src/jit-test/tests/ion/bug1334314.js b/js/src/jit-test/tests/ion/bug1334314.js new file mode 100644 index 000000000..488fc9027 --- /dev/null +++ b/js/src/jit-test/tests/ion/bug1334314.js @@ -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(); -- cgit v1.2.3