Skip to content

Conversation

@kateinoigakukun
Copy link
Member

BridgeJS currently can’t express UnsafePointer-family values in generated bindings, which blocks APIs that use raw pointers.

This adds first-class support for UnsafePointer/UnsafeMutablePointer/UnsafeRawPointer/UnsafeMutableRawPointer/OpaquePointer by treating them as WASM pointers across skeleton, Swift glue, JS glue, and runtime intrinsics. It also covers pointer fields in exported structs.

Allow UnsafePointer/UnsafeRawPointer/OpaquePointer as BridgeJS parameter/return and struct field types by lowering them to WASM pointers.

Updates codegen/runtime intrinsics and adds coverage in generator snapshots + runtime exports.
@kateinoigakukun kateinoigakukun marked this pull request as draft January 26, 2026 23:53
@kateinoigakukun kateinoigakukun marked this pull request as ready for review January 27, 2026 01:06
@kateinoigakukun kateinoigakukun merged commit 89e3532 into main Jan 27, 2026
9 checks passed
@kateinoigakukun kateinoigakukun deleted the katei/6805-bridgejs-support branch January 27, 2026 02:05
@kateinoigakukun kateinoigakukun linked an issue Jan 27, 2026 that may be closed by this pull request
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.

BridgeJS: Support UnsafePointer family as parameter/return type

3 participants