-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[wasm] Migrate rest of the JS interop functions to out params #68642
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
Conversation
|
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsA follow up on the #65994. Migrate rest of the JS interop functions to out params instead of return.
|
|
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@kg please have look as well. |
|
Any icalls we change the signature of like these need to have their name changed, because any third party callers (like blazor, uno etc) will crash or corrupt the heap by passing the wrong number of arguments (or reading a return value that isn't there). The convention I selected is a 'Ref' suffix at the end of the name for C#/C methods, and for JS methods either 'ref' (if they take a MonoObjectRef) or 'root' (if they take a WasmRoot) |
kg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing the work of spotting these issues and updating the code!
|
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Thanks! Now I see it in your PR, I should have read it before. |
A follow up on the #65994.
Migrate rest of the JS interop functions to out params instead of return.
mono_wasm_invoke_js_with_argsmono_wasm_cancel_promisemono_wasm_compile_function