src/third_party/mozjs/extract/js/src/builtin/AsyncIteration.js
/* Iterator Helpers proposal 2.1.6.6 Prelude */
Iterator Helpers proposal 2.1.6.6 Prelude
Iterator Helpers proposal 2 . 1 . 6 . 6 Prelude
function AsyncIteratorAsIndexedPairs() {
  const iterated = GetIteratorDirect(this);
  const iteratorHelper = NewAsyncIteratorHelper();
  const generator = AsyncIteratorAsIndexedPairsGenerator(iterated);
  callFunction(IntrinsicAsyncGeneratorNext, generator);
  UnsafeSetReservedSlot(iteratorHelper, ASYNC_ITERATOR_HELPER_GENERATOR_SLOT, generator);
  return iteratorHelper;
}
function AsyncIteratorAsIndexedPairs ( ) { const iterated = GetIteratorDirect ( this ) ; const iteratorHelper = NewAsyncIteratorHelper ( ) ; const generator = AsyncIteratorAsIndexedPairsGenerator ( iterated ) ; callFunction ( IntrinsicAsyncGeneratorNext , generator ) ; UnsafeSetReservedSlot ( iteratorHelper , ASYNC_ITERATOR_HELPER_GENERATOR_SLOT , generator ) ; return iteratorHelper ; }
Iterator Helpers proposal 2.1.6.6 Prelude
Iterator Helpers proposal 2 . 1 . 6 . 6 Prelude
// Step 1.