diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-25 14:49:32 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-25 14:49:32 +0200 |
commit | 2818e8dedb4a9a6cf40688ad42bf2be05e2f26d2 (patch) | |
tree | eadb970219bff53c96ebf7b300d87e0f3413cdb2 /js/src/jit-test/tests/ion/bug1334314.js | |
parent | e7a220aae2dd6f92c57b92fdd08ff94e5826c035 (diff) | |
download | UXP-2818e8dedb4a9a6cf40688ad42bf2be05e2f26d2.tar UXP-2818e8dedb4a9a6cf40688ad42bf2be05e2f26d2.tar.gz UXP-2818e8dedb4a9a6cf40688ad42bf2be05e2f26d2.tar.lz UXP-2818e8dedb4a9a6cf40688ad42bf2be05e2f26d2.tar.xz UXP-2818e8dedb4a9a6cf40688ad42bf2be05e2f26d2.zip |
Bug 1334314 - Fix debug mode OSR exception handling for IteratorClose trynotes
Issue #74
Diffstat (limited to 'js/src/jit-test/tests/ion/bug1334314.js')
-rw-r--r-- | js/src/jit-test/tests/ion/bug1334314.js | 16 |
1 files changed, 16 insertions, 0 deletions
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(); |