-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mono][wasm] wasm interop tracking #95084
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsTracking issue for WasmInterop:
|
Right now DllImport on WASM throws a compiler error, if there is an unsupported pinvoke or marshaling. Such as com interop, or some windows specific marshaling. Since on other platforms DllImport seems to be lazily evaluates, unsupported DllImport would crash in runtime when executed. Which is fine, since such code would commonly be hidden under platform conditions, and never actually be executed. But with WASM it’s not possible. Was there an idea to, possible, replace such pinvokes with stubs that would throw an exception in runtime? Mimicking behavior of non-wasm platforms. |
I'm not sure what .NET version or runtime you are referring to but the WASM runtimes definitely support most DLLImports (as static imports) when the build is correctly configured. |
maybe this is already fixed @lewing @mkhamoyan ? |
Tracking issue for WasmInterop:
The text was updated successfully, but these errors were encountered: