Skip to content

Commit

Permalink
Editorial: remove unnecessary assertion (#2296)
Browse files Browse the repository at this point in the history
Both S and R are Strings, so either both or neither should be asserted in the steps. I chose neither.
  • Loading branch information
ljharb committed Feb 11, 2021
1 parent e18f533 commit 97c2b87
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -29111,7 +29111,6 @@ <h1>String.prototype.split ( _separator_, _limit_ )</h1>
<h1>SplitMatch ( _S_, _q_, _R_ )</h1>
<p>The abstract operation SplitMatch takes arguments _S_ (a String), _q_ (a non-negative integer), and _R_ (a String). It returns either ~not-matched~ or the end index of a match. It performs the following steps when called:</p>
<emu-alg>
1. Assert: Type(_R_) is String.
1. Let _r_ be the number of code units in _R_.
1. Let _s_ be the number of code units in _S_.
1. If _q_ + _r_ &gt; _s_, return ~not-matched~.
Expand Down

0 comments on commit 97c2b87

Please sign in to comment.