Skip to content

[wasm] fix marshaling Error to C# as JSType.Any #79340

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

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Dec 7, 2022

Fixes #78972

_marshal_cs_object_to_cs is dynamic marshaling by type of JavaScript object.
It used incomplete implementation of Error marshaling and created managed string reference to random pointer as result.
This fix is using common method for marshaling Error, instead of the broken duplicate.

@pavelsavara pavelsavara added this to the 8.0.0 milestone Dec 7, 2022
@pavelsavara pavelsavara requested review from vargaz and maraf December 7, 2022 12:09
@pavelsavara pavelsavara requested a review from lewing as a code owner December 7, 2022 12:09
@pavelsavara pavelsavara self-assigned this Dec 7, 2022
@ghost
Copy link

ghost commented Dec 7, 2022

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

Issue Details

Fixes #78972

Author: pavelsavara
Assignees: pavelsavara
Labels:

arch-wasm, area-System.Runtime.InteropServices.JavaScript

Milestone: 8.0.0

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara pavelsavara merged commit d8873fb into dotnet:main Dec 7, 2022
@pavelsavara
Copy link
Member Author

/backport to release/7.0

@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2022

Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3641280687

@ghost ghost locked as resolved and limited conversation to collaborators Jan 6, 2023
@pavelsavara pavelsavara deleted the wasm_exception branch September 2, 2024 15:29
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.

[wasm] V8 crash with AOT for System.Runtime.InteropServices.JavaScript.Tests
2 participants