Skip to content

Conversation

@kateinoigakukun
Copy link
Member

Imported JS interfaces should be able to accept/return callbacks as Swift closures, matching the export-side ergonomics.

  • Add closure marshalling for imported function signatures (parameters + return values).
  • Centralize closure glue generation and emit it once from BridgeJSTool to avoid duplicate symbols.
  • Add BridgeJSRuntimeTests coverage for imported callbacks.

Enable closure parameter/return types for imported JS interfaces and emit the required closure glue from BridgeJSTool.
@kateinoigakukun kateinoigakukun force-pushed the katei/14ce-add-support-for branch 2 times, most recently from e37e6d1 to 3286279 Compare January 26, 2026 10:11
@kateinoigakukun kateinoigakukun force-pushed the katei/14ce-add-support-for branch from 3286279 to 1e4389d Compare January 26, 2026 10:25
Add runtime import fixtures and tests for passing Swift closures into JS and receiving JS functions back as Swift closures.
@kateinoigakukun kateinoigakukun force-pushed the katei/14ce-add-support-for branch from 1e4389d to cef2d6f Compare January 26, 2026 10:40
@krodak krodak merged commit 7b0ef78 into main Jan 26, 2026
9 checks passed
@krodak krodak deleted the katei/14ce-add-support-for branch January 26, 2026 12:07
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.

3 participants