summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1143679.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug1143679.js')
-rw-r--r--js/src/jit-test/tests/ion/bug1143679.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1143679.js b/js/src/jit-test/tests/ion/bug1143679.js
new file mode 100644
index 000000000..a0e023736
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1143679.js
@@ -0,0 +1,15 @@
+// |jit-test| error:98
+function foo() {
+ function gen() {
+ try {
+ yield 1;
+ } finally {
+ throw 98;
+ }
+ }
+ for (i in gen()) {
+ for each (var i in this)
+ return false;
+ }
+}
+foo();