68fd76fa68
When an async function directly returns a `const` value, a basic literal, or implicit `null` (empty body), omit the state machine loop and exception handling. See the new test for the cases this simplifies. Issue: https://github.com/dart-lang/sdk/issues/60433 Change-Id: I25c25cb42c02cc3a9155e01ce205f63b567a1008 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/419840 Reviewed-by: Martin Kustermann <kustermann@google.com>
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/tree/main/docs/Testing.md.