You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. If _O_ is not an Object, throw a *TypeError* exception.
46762
-
1. Let _numLimit_ be ? ToNumber(_limit_).
46763
-
1. If _numLimit_ is *NaN*, throw a *RangeError* exception.
46762
+
1. Let _iterated_ be the Iterator Record { [[Iterator]]: _O_, [[NextMethod]]: *undefined*, [[Done]]: *false* }.
46763
+
1. Let _numLimit_ be Completion(ToNumber(_limit_)).
46764
+
1. IfAbruptCloseIterator(_numLimit_, _iterated_).
46765
+
1. If _numLimit_ is *NaN*, then
46766
+
1. Let _error_ be ThrowCompletion(a newly created *RangeError* object).
46767
+
1. Return ? IteratorClose(_iterated_, _error_).
46764
46768
1. Let _integerLimit_ be ! ToIntegerOrInfinity(_numLimit_).
46765
-
1. If _integerLimit_ < 0, throw a *RangeError* exception.
46766
-
1. Let _iterated_ be ? GetIteratorDirect(_O_).
46769
+
1. If _integerLimit_ < 0, then
46770
+
1. Let _error_ be ThrowCompletion(a newly created *RangeError* object).
46771
+
1. Return ? IteratorClose(_iterated_, _error_).
46772
+
1. Set _iterated_ to ? GetIteratorDirect(_O_).
46767
46773
1. Let _closure_ be a new Abstract Closure with no parameters that captures _iterated_ and _integerLimit_ and performs the following steps when called:
1. If _O_ is not an Object, throw a *TypeError* exception.
46976
-
1. Let _numLimit_ be ? ToNumber(_limit_).
46977
-
1. If _numLimit_ is *NaN*, throw a *RangeError* exception.
46991
+
1. Let _iterated_ be the Iterator Record { [[Iterator]]: _O_, [[NextMethod]]: *undefined*, [[Done]]: *false* }.
46992
+
1. Let _numLimit_ be Completion(ToNumber(_limit_)).
46993
+
1. IfAbruptCloseIterator(_numLimit_, _iterated_).
46994
+
1. If _numLimit_ is *NaN*, then
46995
+
1. Let _error_ be ThrowCompletion(a newly created *RangeError* object).
46996
+
1. Return ? IteratorClose(_iterated_, _error_).
46978
46997
1. Let _integerLimit_ be ! ToIntegerOrInfinity(_numLimit_).
46979
-
1. If _integerLimit_ < 0, throw a *RangeError* exception.
46980
-
1. Let _iterated_ be ? GetIteratorDirect(_O_).
46998
+
1. If _integerLimit_ < 0, then
46999
+
1. Let _error_ be ThrowCompletion(a newly created *RangeError* object).
47000
+
1. Return ? IteratorClose(_iterated_, _error_).
47001
+
1. Set _iterated_ to ? GetIteratorDirect(_O_).
46981
47002
1. Let _closure_ be a new Abstract Closure with no parameters that captures _iterated_ and _integerLimit_ and performs the following steps when called:
0 commit comments