diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2020-10-06 20:15:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 20:15:42 +0300 |
commit | aa79a0f14438ea463e57693e2f878676649d9bc3 (patch) | |
tree | b780525ced79d9992228f8f61ef93e56d485e8af | |
parent | cd4ccd7e56fe637d995653c2f4278ace5b7723ba (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.c | 2 |
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; } |