Skip to content

[browser][MT] fix calling JS functions from workers #81268

@pavelsavara

Description

@pavelsavara

@thaystg said that _mono_wasm_fire_debugger_agent_message_with_data was calling empty function instead of JS implementation.
It's caused by #79466

In the dotnet.js file we have the _mono_wasm_fire_debugger_agent_message_with_data which is replaced in replace_linker_placeholders by the correct one mono_wasm_fire_debugger_agent_message_with_data, which calls the debugger statement.

In a worker replace_linker_placeholders is never called so when we are calling mono_wasm_fire_debugger_agent_message_with_data from mini-wasm-debugger.c file, it's calling the empty version of the JS function and the debugger doesn't work.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions