Changed mono exception type from execution engine to not supported (#43009)
authorShreyas Jejurkar <shreyasjejurkar123@live.com>
Tue, 6 Oct 2020 17:15:35 +0000 (22:45 +0530)
committerGitHub <noreply@github.com>
Tue, 6 Oct 2020 17:15:35 +0000 (13:15 -0400)
src/mono/mono/metadata/object.c

index 0423ee9..5f640a2 100644 (file)
@@ -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;
        }