4bc01d469e
Bug: https://github.com/dart-lang/sdk/issues/54417 Change-Id: Iddafe896f7c070b7ef4205347b4b454febbd164a Fixes: https://github.com/dart-lang/sdk/issues/54417 TEST=tests/ffi/exceptional_return_const_test.dart for the new behavior TEST=tests/ffi/vmspecific_static_checks_test.dart tests that the existing error messages still work. Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/397220 Commit-Queue: Liam Appelbe <liama@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>