diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/bug560234b.js')
-rw-r--r-- | js/src/jit-test/tests/basic/bug560234b.js | 12 |
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 0000000000..a008b5f42a --- /dev/null +++ b/js/src/jit-test/tests/basic/bug560234b.js @@ -0,0 +1,12 @@ +function f(a) { + function* g() { + yield function () { return a; }; + } + if (a == 8) + return g(); + a = 3; +} +var x; +for (var i = 0; i < 9; i++) + x = f(i); +x.next().value(); // ReferenceError: a is not defined. |