Skip to content

Conversation

eyebrowsoffire
Copy link
Contributor

In dart2wasm, JS functions and dart functions cannot be cast directly between each other. Similarly, JS promises and dart futures cannot be cast directly between each other either. Instead, we should use callAsFunction and use toDart to convert the JSPromise to a Future.

@TarekkMA TarekkMA requested a review from Lyokone April 19, 2024 07:44
@TarekkMA TarekkMA changed the title Fix invocation of unsubscribe callback for dart2wasm compatibility. fix(auth, web): invocation of unsubscribe callback for dart2wasm compatibility. Apr 19, 2024
@Lyokone Lyokone merged commit 2b84feb into firebase:master Apr 19, 2024
@firebase firebase locked and limited conversation to collaborators May 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants