Skip to content

[browser][MT] Calling JS functions from workers + config loading#81273

Merged
pavelsavara merged 8 commits into
dotnet:mainfrom
pavelsavara:browser_mt_jsfunctions
Jan 31, 2023
Merged

[browser][MT] Calling JS functions from workers + config loading#81273
pavelsavara merged 8 commits into
dotnet:mainfrom
pavelsavara:browser_mt_jsfunctions

Conversation

@pavelsavara
Copy link
Copy Markdown
Member

@pavelsavara pavelsavara commented Jan 27, 2023

  • fix adding mono JS functions into wasm imports directly + remove workaround
  • create one-off message port to exchange mono config very early
  • await the mono config before resolving the topmost dotnet.js promise
  • fix forwarding console to WS

Fixes #81268

@pavelsavara pavelsavara added this to the 8.0.0 milestone Jan 27, 2023
@pavelsavara pavelsavara self-assigned this Jan 27, 2023
@ghost
Copy link
Copy Markdown

ghost commented Jan 27, 2023

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

Issue Details

Fixes #81268

Author: pavelsavara
Assignees: pavelsavara
Labels:

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

Milestone: 8.0.0

Copy link
Copy Markdown
Member

@lambdageek lambdageek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me. Thanks for doing it so quickly

@pavelsavara pavelsavara changed the title [browser][MT] fix calling JS functions from workers [browser][MT] Calling JS functions from workers + config loading Jan 30, 2023
@pavelsavara pavelsavara requested a review from kg January 30, 2023 14:23
@pavelsavara pavelsavara marked this pull request as ready for review January 30, 2023 14:23
@pavelsavara pavelsavara requested a review from lewing as a code owner January 30, 2023 14:23
@pavelsavara
Copy link
Copy Markdown
Member Author

/azp run runtime-wasm

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara
Copy link
Copy Markdown
Member Author

to be merged only after preview1 snap

@lambdageek lambdageek added the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Jan 30, 2023
@pavelsavara pavelsavara requested a review from maraf January 30, 2023 15:40
Comment thread src/mono/wasm/runtime/pthreads/shared/index.ts Outdated
Comment thread src/mono/wasm/runtime/pthreads/worker/index.ts
@pavelsavara pavelsavara removed the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Jan 31, 2023
@pavelsavara
Copy link
Copy Markdown
Member Author

/azp run runtime-wasm

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara pavelsavara merged commit e831dab into dotnet:main Jan 31, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 2, 2023
@pavelsavara pavelsavara deleted the browser_mt_jsfunctions 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.

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

3 participants