Skip to content

Improve compatibility with Embedded Swift #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025
Merged

Conversation

MaxDesiatov
Copy link
Contributor

The change adds a conditional import excluding the JavaScriptEventLoop module that's not yet fully compatible with Embedded Swift. With the JSObject type from the JavaScriptKit dependency, which is also now compatible with Embedded Swift, record types are now mapped to JSObject. As for fields marked as optional in originating IDL, these are now correctly mapped as optional in Swift.

The change adds a conditional import excluding the JavaScriptEventLoop module that's not yet fully compatible with Embedded Swift. With the `JSObject` type from the JavaScriptKit dependency, which is also now compatible with Embedded Swift, record types are now mapped to `JSObject`. As for fields marked as optional in originating IDL, these are now correctly mapped as optional in Swift.
@kateinoigakukun kateinoigakukun merged commit 4fbb046 into main Apr 23, 2025
0 of 2 checks passed
@kateinoigakukun kateinoigakukun deleted the maxd/use-jsobject branch April 23, 2025 13:17
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