Skip to content

Commit 7a6e190

Browse files
authored
feat(ecmascript): String.prototype RegExp adjacent methods (#831)
* fix(ecmascript): IsRegExp is undefined test * feat(ecmascript): String.prototype.replaceAll RegExp searchValue * feat(ecmascript): String.prototype.search * fix(ecmascript): Don't call well-known Symbol methods for RegExp on primitive values * feat(ecmascript): String.prototype.matchAll * feat(ecmascript): String.prototype.localeCompare base
1 parent 1606c72 commit 7a6e190

File tree

4 files changed

+347
-105
lines changed

4 files changed

+347
-105
lines changed

nova_vm/src/ecmascript/abstract_operations/testing_and_comparison.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ pub(crate) fn is_reg_exp<'a>(
179179
)?;
180180

181181
// 3. If matcher is not undefined, return ToBoolean(matcher).
182-
if matcher.is_undefined() {
182+
if !matcher.is_undefined() {
183183
return Ok(to_boolean(agent, matcher));
184184
}
185185

0 commit comments

Comments
 (0)