Skip to content

Commit

Permalink
Editorial: String.prototype.matchAll iterators won't return null (tc3…
Browse files Browse the repository at this point in the history
  • Loading branch information
susisu authored and ljharb committed Oct 4, 2024
1 parent 45bbe89 commit 76814cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -34921,7 +34921,7 @@ <h1>String.prototype.match ( _regexp_ )</h1>

<emu-clause id="sec-string.prototype.matchall">
<h1>String.prototype.matchAll ( _regexp_ )</h1>
<p>This method performs a regular expression match of the String representing the *this* value against _regexp_ and returns an iterator. Each iteration result's value is an Array containing the results of the match, or *null* if the String did not match.</p>
<p>This method performs a regular expression match of the String representing the *this* value against _regexp_ and returns an iterator that yields match results. Each match result is an Array containing the matched portion of the String as the first element, followed by the portions matched by any capturing groups. If the regular expression never matches, the returned iterator does not yield any match results.</p>
<p>It performs the following steps when called:</p>

<emu-alg>
Expand Down

0 comments on commit 76814cb

Please sign in to comment.