Skip to content

Commit

Permalink
reuse GetIteratorDirect in GetIteratorFlattenable (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Mar 30, 2023
1 parent eb62379 commit 052777f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spec.html
Expand Up @@ -142,10 +142,7 @@ <h1>
1. Else,
1. Let _iterator_ be ? Call(_method_, _obj_).
1. If _iterator_ is not an Object, throw a *TypeError* exception.
1. Let _nextMethod_ be ? Get(_iterator_, *"next"*).
1. If IsCallable(_nextMethod_) is *false*, throw a *TypeError* exception.
1. Let _iteratorRecord_ be the Iterator Record { [[Iterator]]: _iterator_, [[NextMethod]]: _nextMethod_, [[Done]]: *false* }.
1. Return _iteratorRecord_.
1. Return ? GetIteratorDirect(_iterator_).
</emu-alg>
</emu-clause>
</emu-clause>
Expand Down

0 comments on commit 052777f

Please sign in to comment.