src/third_party/mozjs/extract/js/src/builtin/Iterator.js
/* Iterator Helpers proposal 2.1.5.6 Prelude */
Iterator Helpers proposal 2.1.5.6 Prelude
Iterator Helpers proposal 2 . 1 . 5 . 6 Prelude
function IteratorAsIndexedPairs() {
  const iterated = GetIteratorDirect(this);
  const iteratorHelper = NewIteratorHelper();
  const generator = IteratorAsIndexedPairsGenerator(iterated);
  callContentFunction(GeneratorNext, generator);
  UnsafeSetReservedSlot(iteratorHelper, ITERATOR_HELPER_GENERATOR_SLOT, generator);
  return iteratorHelper;
}
function IteratorAsIndexedPairs ( ) { const iterated = GetIteratorDirect ( this ) ; const iteratorHelper = NewIteratorHelper ( ) ; const generator = IteratorAsIndexedPairsGenerator ( iterated ) ; callContentFunction ( GeneratorNext , generator ) ; UnsafeSetReservedSlot ( iteratorHelper , ITERATOR_HELPER_GENERATOR_SLOT , generator ) ; return iteratorHelper ; }
Iterator Helpers proposal 2.1.5.6 Prelude
Iterator Helpers proposal 2 . 1 . 5 . 6 Prelude
// Step 1.