* TODO:
* This should keep track of the assembly versions that we are loading.
*
+ * Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
#include <config.h>
#include <glib.h>
{
MonoError error;
MonoMethodHeader *header = mono_method_get_header_checked (method, &error);
- mono_loader_assert_no_error ();
- if (!header)
- mono_loader_set_error_from_mono_error (&error);
+ mono_error_cleanup (&error);
return header;
}