Skip to content
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

Fix mono_wasm_invoke_js_blazor in dotnet_support.js #41058

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

MackinnonBuck
Copy link
Member

Summary

References to mono_string in mono_wasm_invoke_js_blazor resulted in a ReferenceError since mono_string was not defined. This impacted any JS interop calls that threw unhandled exceptions. This fix creates a local variable mono_string similar to how it is done in mono_wasm_invoke_js_marshalled.

@pranavkm
Copy link
Contributor

/cc @lewing \ @kjpou1 \ @marek-safar we're trying to land a feature in 5.0-rc1 that requires this change. This particular method is specifically tied to Blazor, so it should be fairly safe to take it. If you need further details, please feel free to ping either of us and we can fill you in.

Given we'd like to get this for rc1, what branch should we be targeting?

@SamMonoRT
Copy link
Member

@pranavkm - merging in master and backporting to release/5.0 should get it in RC1

@MackinnonBuck MackinnonBuck merged commit 4998192 into dotnet:master Aug 20, 2020
MackinnonBuck added a commit to MackinnonBuck/runtime that referenced this pull request Aug 20, 2020
pranavkm pushed a commit that referenced this pull request Aug 21, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants