@@ -523,24 +523,6 @@ <h1>Iterator.prototype.drop ( _limit_ )</h1>
523
523
</emu-alg >
524
524
</emu-clause >
525
525
526
- <emu-clause id =" sec-iteratorprototype.indexed" >
527
- <h1 >Iterator.prototype.indexed ( )</h1 >
528
- <emu-alg >
529
- 1. Let _iterated_ be ? GetIteratorDirect(*this* value).
530
- 1. Let _closure_ be a new Abstract Closure with no parameters that captures _iterated_ and performs the following steps when called:
531
- 1. Let _index_ be 0.
532
- 1. Repeat,
533
- 1. Let _next_ be ? IteratorStep(_iterated_ ).
534
- 1. If _next_ is *false* , return *undefined* .
535
- 1. Let _value_ be ? IteratorValue(_next_ ).
536
- 1. Let _pair_ be CreateArrayFromList(« ; 𝔽(_index_ ), _value_ » ; ).
537
- 1. Let _completion_ be Completion(Yield(_pair_ )).
538
- 1. IfAbruptCloseIterator(_completion_ , _iterated_ ).
539
- 1. Set _index_ to _index_ + 1.
540
- 1. Return CreateIteratorFromClosure(_closure_ , ~Iterator Helper~ , %IteratorHelperPrototype%).
541
- </emu-alg >
542
- </emu-clause >
543
-
544
526
<emu-clause id =" sec-iteratorprototype.flatmap" >
545
527
<h1 >Iterator.prototype.flatMap ( _mapper_ )</h1 >
546
528
<emu-alg >
@@ -802,24 +784,6 @@ <h1>AsyncIterator.prototype.drop ( _limit_ )</h1>
802
784
</emu-alg >
803
785
</emu-clause >
804
786
805
- <emu-clause id =" sec-asynciteratorprototype.indexed" >
806
- <h1 >AsyncIterator.prototype.indexed ( )</h1 >
807
- <emu-alg >
808
- 1. Let _iterated_ be ? GetIteratorDirect(*this* value).
809
- 1. Let _closure_ be a new Abstract Closure with no parameters that captures _iterated_ and performs the following steps when called:
810
- 1. Let _index_ be 0.
811
- 1. Repeat,
812
- 1. Let _next_ be ? Await(? IteratorNext(_iterated_ )).
813
- 1. If ? IteratorComplete(_next_ ) is *true* , return *undefined* .
814
- 1. Let _value_ be ? IteratorValue(_next_ ).
815
- 1. Let _pair_ be CreateArrayFromList(« ; _index_ , _value_ » ; ).
816
- 1. Let _completion_ be Completion(Yield(_pair_ )).
817
- 1. IfAbruptCloseAsyncIterator(_completion_ , _iterated_ ).
818
- 1. Set _index_ to _index_ + 1.
819
- 1. Return CreateAsyncIteratorFromClosure(_closure_ , ~Async Iterator Helper~ , %AsyncIteratorHelperPrototype%).
820
- </emu-alg >
821
- </emu-clause >
822
-
823
787
<emu-clause id =" sec-asynciteratorprototype.flatmap" >
824
788
<h1 >AsyncIterator.prototype.flatMap ( _mapper_ )</h1 >
825
789
<p >AsyncIterator.prototype.flatMap is a built-in async generator function which, when called, performs the following steps:</p >
0 commit comments