feat: RegExp.prototype 实现 Symbol.match/replace/search/split/matchAll

This commit is contained in:
爱特每羊队
2026-08-08 22:33:32 +08:00
parent 651b368528
commit eefdfc0d2c
8 changed files with 322 additions and 13 deletions
+2
View File
@@ -689,6 +689,8 @@ impl Vm {
"@@toPrimitive"
} else if std::ptr::eq(ptr, world.sym_has_instance.as_ptr()) {
"@@hasInstance"
} else if std::ptr::eq(ptr, world.sym_match_all.as_ptr()) {
"@@matchAll"
} else {
""
};