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
@@ -62,6 +62,10 @@ pub fn bind_symbol(core: &Arc<KernelCore>, session: &KernelSession, global: &mut
"hasInstance",
JsValue::from_js_object(session.builtin_world().sym_has_instance.as_ptr() as *mut JsObject),
),
(
"matchAll",
JsValue::from_js_object(session.builtin_world().sym_match_all.as_ptr() as *mut JsObject),
),
] {
bind_well_known_symbol(core, ctor, name, val);
}