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

This commit is contained in:
2026-08-08 22:33:32 +08:00
parent 7db0583802
commit 826d9fd0a2
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 {
""
};