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.
47359
-
1. Let _numLimit_ be ? ToNumber(_limit_).
47360
-
1. If _numLimit_ is *NaN*, throw a *RangeError* exception.
47359
+
1. Let _iterated_ be the Iterator Record { [[Iterator]]: _O_, [[NextMethod]]: *undefined*, [[Done]]: *false* }.
47360
+
1. Let _numLimit_ be Completion(ToNumber(_limit_)).
47361
+
1. IfAbruptCloseIterator(_numLimit_, _iterated_).
47362
+
1. If _numLimit_ is *NaN*, then
47363
+
1. Let _error_ be ThrowCompletion(a newly created *RangeError* object).
47364
+
1. Return ? IteratorClose(_iterated_, _error_).
47361
47365
1. Let _integerLimit_ be ! ToIntegerOrInfinity(_numLimit_).
47362
-
1. If _integerLimit_ < 0, throw a *RangeError* exception.
47363
-
1. Let _iterated_ be ? GetIteratorDirect(_O_).
47366
+
1. If _integerLimit_ < 0, then
47367
+
1. Let _error_ be ThrowCompletion(a newly created *RangeError* object).
47368
+
1. Return ? IteratorClose(_iterated_, _error_).
47369
+
1. Set _iterated_ to ? GetIteratorDirect(_O_).
47364
47370
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.
47573
-
1. Let _numLimit_ be ? ToNumber(_limit_).
47574
-
1. If _numLimit_ is *NaN*, throw a *RangeError* exception.
47588
+
1. Let _iterated_ be the Iterator Record { [[Iterator]]: _O_, [[NextMethod]]: *undefined*, [[Done]]: *false* }.
47589
+
1. Let _numLimit_ be Completion(ToNumber(_limit_)).
47590
+
1. IfAbruptCloseIterator(_numLimit_, _iterated_).
47591
+
1. If _numLimit_ is *NaN*, then
47592
+
1. Let _error_ be ThrowCompletion(a newly created *RangeError* object).
47593
+
1. Return ? IteratorClose(_iterated_, _error_).
47575
47594
1. Let _integerLimit_ be ! ToIntegerOrInfinity(_numLimit_).
47576
-
1. If _integerLimit_ < 0, throw a *RangeError* exception.
47577
-
1. Let _iterated_ be ? GetIteratorDirect(_O_).
47595
+
1. If _integerLimit_ < 0, then
47596
+
1. Let _error_ be ThrowCompletion(a newly created *RangeError* object).
47597
+
1. Return ? IteratorClose(_iterated_, _error_).
47598
+
1. Set _iterated_ to ? GetIteratorDirect(_O_).
47578
47599
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