-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
dartk: Await/Yield points during expression evaluation of assert statements #28498
Comments
@kmillikin & @asgerf: We need a way to express this in Kernel |
I am escalating this, I just wasted a lot of time debugging a Flutter plugin test because of |
Please triage /cc @kmillikin |
The issue is that the async-elimination transformer translates an expression containing We will solve this in Kernel by eliminating
We can optionally provide a mechanism for a back end to control the specific constructor that is used for the error. |
To avoid the increase in binary size due to desugaring (and taking a bit of control away from backends) you could also consider something similar, namely adding a Then the await/async transformer can work as usual. Just a suggestion! |
@kmillikin Any updates on this? |
I have a fix in flight, but it will have to wait until tomorrow (Tuesday) at this point. |
Currently the following code
is compiled (with async/await transformer) to
Due to the following TODO in the
pkg/kernel/lib/transformers/continuation.dart
:With our old block expressions this might have been easier to handle.
/cc @kmillikin & #28263
The text was updated successfully, but these errors were encountered: