Skip to content

Commit

Permalink
Normative: properly close iterator in Array.from
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed Feb 6, 2016
1 parent 28bdf07 commit 1e71565
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -29385,7 +29385,9 @@ <h1>Array.from ( _items_ [ , _mapfn_ [ , _thisArg_ ] ] )</h1>
1. Let _iterator_ be ? GetIterator(_items_, _usingIterator_).
1. Let _k_ be 0.
1. Repeat
1. If _k_ &ge; 2<sup>53</sup>-1, throw a *TypeError* exception.
1. If _k_ &ge; 2<sup>53</sup>-1, then
1. Let _error_ be Completion{[[type]]: ~throw~, [[value]]: a newly created *TypeError* object, [[target]]:~empty~}.
1. Return ? IteratorClose(_iterator_, _error_).
1. Let _Pk_ be ! ToString(_k_).
1. Let _next_ be ? IteratorStep(_iterator_).
1. If _next_ is *false*, then
Expand Down

0 comments on commit 1e71565

Please sign in to comment.