summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug560234b.js
blob: b130d7500d8b975cd05be84f10e3b6459621ed12 (plain)
1
2
3
4
5
6
7
8
9
10
11
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.