summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug560234b.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/bug560234b.js')
-rw-r--r--js/src/jit-test/tests/basic/bug560234b.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug560234b.js b/js/src/jit-test/tests/basic/bug560234b.js
new file mode 100644
index 000000000..b130d7500
--- /dev/null
+++ b/js/src/jit-test/tests/basic/bug560234b.js
@@ -0,0 +1,12 @@
+function f(a) {
+ function g() {
+ yield function () a;
+ }
+ if (a == 8)
+ return g();
+ a = 3;
+}
+var x;
+for (var i = 0; i < 9; i++)
+ x = f(i);
+x.next()(); // ReferenceError: a is not defined.