Skip to content

BridgeJS: Support exporting protocol methods with async and throws - #820

Merged
krodak merged 2 commits into
swiftwasm:mainfrom
wfltaylor:async-throws-protocol
Oct 15, 2026
Merged

krodak merged 2 commits into
swiftwasm:mainfrom
wfltaylor:async-throws-protocol

Conversation

@wfltaylor

@wfltaylor wfltaylor commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Make it so you can implement protocol methods which are async and throws(JSException) in JS. This also fixes a bug where JS exceptions thrown synchronously in async functions were not handled, and allows a non-Promise return (like await).

Comment thread Plugins/BridgeJS/Sources/BridgeJSLink/BridgeJSLink.swift
@krodak

krodak commented Oct 14, 2026

Copy link
Copy Markdown
Member

Thanks, this is great 🎉

@krodak
krodak enabled auto-merge October 15, 2026 09:40
@krodak
krodak merged commit 94388fa into swiftwasm:main Oct 15, 2026
16 checks passed
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.

2 participants