rem: writeLineToLog("Test passed."); 
add: print("Test passed."); 
context: function test(){  enterFunc ('test');  printBugNumber (bug);  printStatus (summary);    var LOOPS = 500;  function gen1() {    for (var a = 1; a <= LOOPS; ++a)       yield;  }  function gen2() {    for (var b in gen1())       yield;  }  function test_it(RUNS) {    for (var c = 1; c <= RUNS; ++c) {      var count = 0;      for (var d in gen2()) {        // The next line is needed to demonstrate the bug.        // Note that simply omitting the "x" triggers the bug far less often.        Object("x");        ++count;      }      if (count != LOOPS) {        writeLineToLog("Test run " + c + ": test failed, count = " + count +                       ", should be " + LOOPS);        var failed = true;      }    }    actual = !failed;    if (!failed)     {      writeLineToLog("Test passed.");    }  }  expect = true;  test_it(20);  reportCompare(expect, actual, summary);  exitFunc ('test');}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/12a7a1d42a08730b7c1f3c81f78d425264c5fce8/regress-350621.js/clean/js/tests/js1_7/geniter/regress-350621.js