| OLD | NEW |
| (Empty) | |
| 1 // Expectation for test: |
| 2 // main() { |
| 3 // var xs = ['x', 'y', 'z'], ys = ['A', 'B', 'C']; |
| 4 // var xit = xs.iterator, yit = ys.iterator; |
| 5 // while (xit.moveNext() && yit.moveNext()) { |
| 6 // print(xit.current); |
| 7 // print(yit.current); |
| 8 // } |
| 9 // } |
| 10 |
| 11 function() { |
| 12 var xs = ["x", "y", "z"], ys = ["A", "B", "C"], i = 0, i1 = 0, current, curren
t1; |
| 13 for (; i < 3; ++i, ++i1) { |
| 14 current = xs[i]; |
| 15 if (!(i1 < 3)) |
| 16 break; |
| 17 current1 = ys[i1]; |
| 18 P.print(current); |
| 19 P.print(current1); |
| 20 } |
| 21 } |
| OLD | NEW |