-
Notifications
You must be signed in to change notification settings - Fork 1.7k
dart2wasm fails inside sync* functions with a switch statement #55839
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
Comments
I believe this is a known missing feature: #51342 |
This has since been implemented. I believe this has also rolled up to flutter/flutter main channel. The changes are somewhat big and @osa1 Could you see if they cherry-pick cleanly on the stable branch? If so, follow https://github.com/dart-lang/sdk/blob/main/docs/Cherry-picks-to-a-release-channel.md to file a CP request. |
@mkustermann we can't cherry pick just the |
Yes. If all 3 on top of each other merge without conflicts, we may consider picking it. |
Appreciate the activity/urgency! I'm happy to wait for stable or switch to master to test the feature; rather than cause trouble with an out of band release/cherry pick |
@mkustermann PTAL: #55847 |
Using: Dart SDK version: 3.4.1 (stable) (Tue May 21 15:46:25 2024 +0000) on "macos_arm64"
Having a sync* function with a switch in it causes dart2wasm to fail:
Not implemented: switch in sync* at <file location>
'Changing the switch to a series of if/else avoids this issue.
Simple repro:
flutter build web --wasm
Gives:
Not implemented: switch in sync* at file:////main.dart:9:3
The text was updated successfully, but these errors were encountered: