Skip to content

Fix JavaScriptEventLoop not building with Embedded Swift #354

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 8 commits into from
May 1, 2025

Conversation

MaxDesiatov
Copy link
Contributor

The change fixes some issues in the JavaScriptKit library when build with Embedded Swift support. Specifically, @MainActor type is not available in Embedded Swift, thus Atomic type is used instead. Similarly, existential types are not available either, so they're replaced with concrete some types and generics.

The change fixes some issues in the JavaScriptKit library when build with Embedded Swift support. Specifically, `@MainActor` type is not available in Embedded Swift, thus `Atomic` type is used instead. Similarly, existential types are not available either, so they're replaced with concrete `some` types and generics.
@MaxDesiatov MaxDesiatov added the bug Something isn't working label May 1, 2025
@kateinoigakukun kateinoigakukun force-pushed the maxd/embedded-concurrency2 branch from f7480a1 to 7a6fdd9 Compare May 1, 2025 12:42
It required us to update the minimum deployment target but it's not
worth doing so just for this.
Returning `some ConvertibleToJSValue` was not consistent with
`JSClosure` initializers, which always return `JSValue`. Also it emits
`Capture of non-sendable type '(some ConvertibleToJSValue).Type' in an
isolated closure` for some reasons.
@kateinoigakukun kateinoigakukun force-pushed the maxd/embedded-concurrency2 branch from 64eeb0d to 697f06b Compare May 1, 2025 13:29
@kateinoigakukun kateinoigakukun merged commit 8c8e0eb into main May 1, 2025
6 checks passed
@kateinoigakukun kateinoigakukun deleted the maxd/embedded-concurrency2 branch May 1, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants