Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 0aa02c4

Browse files
remove no longer necessary .indexed() methods
1 parent 7b5e897 commit 0aa02c4

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

spec.html

-36
Original file line numberDiff line numberDiff line change
@@ -523,24 +523,6 @@ <h1>Iterator.prototype.drop ( _limit_ )</h1>
523523
</emu-alg>
524524
</emu-clause>
525525

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(&laquo; 𝔽(_index_), _value_ &raquo;).
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-
544526
<emu-clause id="sec-iteratorprototype.flatmap">
545527
<h1>Iterator.prototype.flatMap ( _mapper_ )</h1>
546528
<emu-alg>
@@ -802,24 +784,6 @@ <h1>AsyncIterator.prototype.drop ( _limit_ )</h1>
802784
</emu-alg>
803785
</emu-clause>
804786

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(&laquo; _index_, _value_ &raquo;).
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-
823787
<emu-clause id="sec-asynciteratorprototype.flatmap">
824788
<h1>AsyncIterator.prototype.flatMap ( _mapper_ )</h1>
825789
<p>AsyncIterator.prototype.flatMap is a built-in async generator function which, when called, performs the following steps:</p>

0 commit comments

Comments
 (0)