Skip to content

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

Merged
pavelsavara merged 1 commit into
dotnet:mainfrom
pavelsavara:wasm_exception
Dec 7, 2022
Merged

[wasm] fix marshaling Error to C# as JSType.Any#79340
pavelsavara merged 1 commit into
dotnet:mainfrom
pavelsavara:wasm_exception

Conversation

@pavelsavara

@pavelsavarapavelsavara commented Dec 7, 2022

Copy link
Copy Markdown
Member

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.

@ghost

ghost commented Dec 7, 2022

Copy link
Copy Markdown

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
Copy Markdown
MemberAuthor

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

kg
kg approved these changes Dec 7, 2022
@pavelsavara
pavelsavara merged commit d8873fb into dotnet:mainDec 7, 2022
@pavelsavara

Copy link
Copy Markdown
MemberAuthor

/backport to release/7.0

@github-actions

Copy link
Copy Markdown
Contributor

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

@ghostghost 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 freeto 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

@pavelsavara@kg