Skip to content

Commit

Permalink
Editorial: Use GetMethod instead of GetV to get iterator next
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-claudia committed Aug 16, 2018
1 parent 62225e4 commit 44ca605
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -4855,7 +4855,8 @@ <h1>GetIterator ( _obj_ [ , _hint_ [ , _method_ ] ] )</h1>
1. Otherwise, set _method_ to ? GetMethod(_obj_, @@iterator).
1. Let _iterator_ be ? Call(_method_, _obj_).
1. If Type(_iterator_) is not Object, throw a *TypeError* exception.
1. Let _nextMethod_ be ? GetV(_iterator_, `"next"`).
1. Let _nextMethod_ be ? GetMethod(_iterator_, `"next"`).
1. If _nextMethod_ is *undefined*, throw a *TypeError* exception.
1. Let _iteratorRecord_ be Record { [[Iterator]]: _iterator_, [[NextMethod]]: _nextMethod_, [[Done]]: *false* }.
1. Return _iteratorRecord_.
</emu-alg>
Expand Down

0 comments on commit 44ca605

Please sign in to comment.