Skip to content

Commit

Permalink
fixup: review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 15, 2021
1 parent ea1a136 commit a0aa602
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -33901,12 +33901,10 @@ <h1>String.prototype.split ( _separator_, _limit_ )</h1>
1. Let _substrings_ be a new empty List.
1. Let _i_ be 0.
1. Let _j_ be ! StringIndexOf(_S_, _R_, 0).
1. Let _lengthA_ be 0.
1. Repeat, while _j_ is not -1,
1. Let _T_ be the substring of _S_ from _i_ to _j_.
1. Append _T_ as the last element of _substrings_.
1. Set _lengthA_ to _lengthA_ + 1.
1. If _lengthA_ = _lim_, return ! CreateArrayFromList(_substrings_).
1. If the number of elements of _substrings_ is _lim_, return ! CreateArrayFromList(_substrings_).
1. Set _i_ to _j_ + _separatorLength_.
1. Set _j_ to ! StringIndexOf(_S_, _R_, _i_).
1. Let _T_ be the substring of _S_ from _i_.
Expand Down

0 comments on commit a0aa602

Please sign in to comment.