summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_7/extensions/regress-589112.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/js1_7/extensions/regress-589112.js')
-rw-r--r--js/src/tests/js1_7/extensions/regress-589112.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/tests/js1_7/extensions/regress-589112.js b/js/src/tests/js1_7/extensions/regress-589112.js
new file mode 100644
index 000000000..db6d1c7c0
--- /dev/null
+++ b/js/src/tests/js1_7/extensions/regress-589112.js
@@ -0,0 +1,6 @@
+
+f = eval("(function(){return x=Iterator(/x/)})")
+for (a in f()) {}
+for (d in x) {}
+
+reportCompare(0, 0, "");