fn matches_js_regex( cx: JSContext, regex_obj: HandleObject<'_>, value: &str, _can_gc: CanGc, ) -> Result<bool, ()>