diff options
Diffstat (limited to 'js/src/jit-test/tests/generators/bug1767181.js')
-rw-r--r-- | js/src/jit-test/tests/generators/bug1767181.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/generators/bug1767181.js b/js/src/jit-test/tests/generators/bug1767181.js new file mode 100644 index 0000000000..54892be81f --- /dev/null +++ b/js/src/jit-test/tests/generators/bug1767181.js @@ -0,0 +1,14 @@ +var caught = false; +function* a() { + try { + try { + yield; + } finally { + for (b = 0; b < 20; b++) {} + } + } catch (e) { caught = true; } +} +c = a(); +c.next(); +c.return(); +assertEq(caught, false); |