summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/bug541239.js
blob: 389aa9d28f0da62f9de907b212aceffee2dcb759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function m() {
 var d = 73;

 return (eval("\n\
   (function() {\n\
     return function*() {\n\
       yield ((function() {\n\
         print(d);\n\
         return d\n\
       })())\n\
     } ();\n\
   })\n\
 "))();
}

m().next();