pub fn does_not_reject_function( block: &Function, error: Option<&Object>, message: Option<&JsString>, ) -> Promise