diff options
Diffstat (limited to 'js/src/jit-test/tests/generators/bug1151326.js')
-rw-r--r-- | js/src/jit-test/tests/generators/bug1151326.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/generators/bug1151326.js b/js/src/jit-test/tests/generators/bug1151326.js new file mode 100644 index 000000000..17120fbf9 --- /dev/null +++ b/js/src/jit-test/tests/generators/bug1151326.js @@ -0,0 +1,16 @@ +// |jit-test| error: closing generator +var finally3; +function gen() { + try { + try { + yield 1; + } finally { + finally3(); + } + } catch (e) { + yield finally3 === parseInt; + } +} +iter = gen(); +iter.next(); +iter.close(); |