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