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