Skip to content

Conversation

maraf
Copy link
Member

@maraf maraf commented Aug 22, 2025

Based on MinimalMarshalingTypeCompatibilityProvider.cs we mark enums as marshallable by lightweight marshaller on build.
We were missing enums when checking for supported types in marshal-ilgen-stub.c on runtime.

Fixes #115780

@maraf maraf added this to the 11.0.0 milestone Aug 22, 2025
@maraf maraf self-assigned this Aug 22, 2025
@maraf maraf added arch-wasm WebAssembly architecture area-Interop-mono labels Aug 22, 2025
Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Comment on lines +47 to +48
MonoClass *klass = m_type_data_get_klass_unchecked (t); // aka MONO_TYPE_ 17
if (m_class_is_enumtype (klass) == 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MonoClass *klass = m_type_data_get_klass_unchecked (t); // aka MONO_TYPE_ 17
if (m_class_is_enumtype (klass) == 1)
if (m_class_is_enumtype (m_type_data_get_klass_unchecked (t)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-Interop-mono
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blazor WebAssembly - ZipArchiveEntry.Open causes unexpected termination at runtime in published app on .NET 10 Preview 3 and 4
2 participants