Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add JSRemote support for JSClass and async bodies#747

Draft
kateinoigakukun wants to merge 2 commits into
mainswiftwasm/JavaScriptKit:mainfrom
yt/support-jsclass-in-jsremoteswiftwasm/JavaScriptKit:yt/support-jsclass-in-jsremoteCopy head branch name to clipboard
Draft

Add JSRemote support for JSClass and async bodies#747
kateinoigakukun wants to merge 2 commits into
mainswiftwasm/JavaScriptKit:mainfrom
yt/support-jsclass-in-jsremoteswiftwasm/JavaScriptKit:yt/support-jsclass-in-jsremoteCopy head branch name to clipboard

Conversation

@kateinoigakukun

@kateinoigakukun kateinoigakukun commented May 16, 2026

Copy link
Copy Markdown
Member

Summary

  • Add JSRemote convenience APIs for @JSClass bridged objects.
  • Add an async withJSObject body overload so remote JS object access can await promises on the owning thread.
  • Keep sync and async remote invocation storage separate, preserve worker executor affinity where available, and hide async body APIs for Embedded multithreaded builds.
  • Add worker-to-main and main-to-worker tests covering async remote bodies that await JavaScript promises.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.