rem:  var it = {foo:"5"}; it.__iterator__ = function(valsOnly) { var gen = function() { for (var i = 0; i < keys.length; i++) { if (valsOnly) yield vals[i]; else yield [keys[i], vals[i]]; } return gen(); } } 
add:  try { var src = '    var it = {foo:"5"};' + '    it.__iterator__ =' + '      function(valsOnly)' + '      {' + '        var gen =' + '        function()' + '        {' + '          for (var i = 0; i < keys.length; i++)' + '          {' + '            if (valsOnly)' + '              yield vals[i];' + '            else' + '              yield [keys[i], vals[i]];' + '          }' + '          return gen();' + '        }' + '      }'; eval(src); } catch(ex) { } 
context: function test(){  enterFunc ('test');  printBugNumber (bug);  printStatus (summary);    var it = {foo:"5"};  it.__iterator__ =    function(valsOnly)    {      var gen =        function()        {          for (var i = 0; i < keys.length; i++)          {            if (valsOnly)              yield vals[i];            else              yield [keys[i], vals[i]];          }          return gen();        }    }  reportCompare(expect, actual, summary);  exitFunc ('test');}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/75940be05ab82177f656d10a7267c31887fb98f9/regress-346773.js/buggy/js/tests/js1_7/geniter/regress-346773.js