summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug875804.js
blob: 670fce9ca99ad7296d18b5bb4bdc90a5419dcad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
eval('(function () {\
function* range(n) {\
  for (var i = 0; i < 5000; i++)\
    yield i;\
}\
var r = range(10);\
var i = 0;\
for (var x of r)\
  assertEq(x,i++);\
' + '})();');