Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonojenkins <jo.shields+jenkins@xamarin.com>2020-10-06 20:15:42 +0300
committerGitHub <noreply@github.com>2020-10-06 20:15:42 +0300
commitaa79a0f14438ea463e57693e2f878676649d9bc3 (patch)
treeb780525ced79d9992228f8f61ef93e56d485e8af
parentcd4ccd7e56fe637d995653c2f4278ace5b7723ba (diff)
Changed mono exception type from execution engine to not supported. (#20455)
This PR fixes this issue. dotnet/runtime#40738. Whereas the fix is simple, we need to throw `mono_error_set_not_supported` instead of `mono_error_set_execution_engine`. Co-authored-by: MCCshreyas <MCCshreyas@users.noreply.github.com>
-rw-r--r--mono/metadata/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/metadata/object.c b/mono/metadata/object.c
index 0423ee94cc4..5f640a2d5fe 100644
--- a/mono/metadata/object.c
+++ b/mono/metadata/object.c
@@ -7178,7 +7178,7 @@ mono_value_box_handle (MonoDomain *domain, MonoClass *klass, gpointer value, Mon
g_assert (value != NULL);
if (G_UNLIKELY (m_class_is_byreflike (klass))) {
char *full_name = mono_type_get_full_name (klass);
- mono_error_set_execution_engine (error, "Cannot box IsByRefLike type %s", full_name);
+ mono_error_set_not_supported (error, "Cannot box IsByRefLike type %s", full_name);
g_free (full_name);
return NULL_HANDLE;
}