Iterators are not looping forever

by Arnaud Buchholz

JavaScript

const process = {
  get argv() {
  let current = 0;
  while (true) {
    yield current
    ++current
  }
}

const  [,, a, b] = numbers()
console.log(a, b)