@@ -35035,7 +35035,7 @@ <h1>String.prototype.match ( _regexp_ )</h1>
35035
35035
<p>This method performs the following steps when called:</p>
35036
35036
<emu-alg>
35037
35037
1. Let _O_ be ? RequireObjectCoercible(*this* value).
35038
- 1. If _regexp_ is neither *undefined* nor *null* , then
35038
+ 1. If _regexp_ is an Object , then
35039
35039
1. Let _matcher_ be ? GetMethod(_regexp_, %Symbol.match%).
35040
35040
1. If _matcher_ is not *undefined*, then
35041
35041
1. Return ? Call(_matcher_, _regexp_, « _O_ »).
@@ -35055,7 +35055,7 @@ <h1>String.prototype.matchAll ( _regexp_ )</h1>
35055
35055
35056
35056
<emu-alg>
35057
35057
1. Let _O_ be ? RequireObjectCoercible(*this* value).
35058
- 1. If _regexp_ is neither *undefined* nor *null* , then
35058
+ 1. If _regexp_ is an Object , then
35059
35059
1. Let _isRegExp_ be ? IsRegExp(_regexp_).
35060
35060
1. If _isRegExp_ is *true*, then
35061
35061
1. Let _flags_ be ? Get(_regexp_, *"flags"*).
@@ -35196,7 +35196,7 @@ <h1>String.prototype.replace ( _searchValue_, _replaceValue_ )</h1>
35196
35196
<p>This method performs the following steps when called:</p>
35197
35197
<emu-alg>
35198
35198
1. Let _O_ be ? RequireObjectCoercible(*this* value).
35199
- 1. If _searchValue_ is neither *undefined* nor *null* , then
35199
+ 1. If _searchValue_ is an Object , then
35200
35200
1. Let _replacer_ be ? GetMethod(_searchValue_, %Symbol.replace%).
35201
35201
1. If _replacer_ is not *undefined*, then
35202
35202
1. Return ? Call(_replacer_, _searchValue_, « _O_, _replaceValue_ »).
@@ -35309,7 +35309,7 @@ <h1>String.prototype.replaceAll ( _searchValue_, _replaceValue_ )</h1>
35309
35309
<p>This method performs the following steps when called:</p>
35310
35310
<emu-alg>
35311
35311
1. Let _O_ be ? RequireObjectCoercible(*this* value).
35312
- 1. If _searchValue_ is neither *undefined* nor *null* , then
35312
+ 1. If _searchValue_ is an Object , then
35313
35313
1. Let _isRegExp_ be ? IsRegExp(_searchValue_).
35314
35314
1. If _isRegExp_ is *true*, then
35315
35315
1. Let _flags_ be ? Get(_searchValue_, *"flags"*).
@@ -35353,7 +35353,7 @@ <h1>String.prototype.search ( _regexp_ )</h1>
35353
35353
<p>This method performs the following steps when called:</p>
35354
35354
<emu-alg>
35355
35355
1. Let _O_ be ? RequireObjectCoercible(*this* value).
35356
- 1. If _regexp_ is neither *undefined* nor *null* , then
35356
+ 1. If _regexp_ is an Object , then
35357
35357
1. Let _searcher_ be ? GetMethod(_regexp_, %Symbol.search%).
35358
35358
1. If _searcher_ is not *undefined*, then
35359
35359
1. Return ? Call(_searcher_, _regexp_, « _O_ »).
@@ -35396,7 +35396,7 @@ <h1>String.prototype.split ( _separator_, _limit_ )</h1>
35396
35396
<p>It performs the following steps when called:</p>
35397
35397
<emu-alg>
35398
35398
1. Let _O_ be ? RequireObjectCoercible(*this* value).
35399
- 1. If _separator_ is neither *undefined* nor *null* , then
35399
+ 1. If _separator_ is an Object , then
35400
35400
1. Let _splitter_ be ? GetMethod(_separator_, %Symbol.split%).
35401
35401
1. If _splitter_ is not *undefined*, then
35402
35402
1. Return ? Call(_splitter_, _separator_, « _O_, _limit_ »).
0 commit comments