e319cfa6aa
This uses the class ErrorType which may be an outdated field on ErrorCode, but it works for a prototype. Fixes https://github.com/dart-lang/sdk/issues/46957 Change-Id: I98de8faf7f3ad738e9e27b0d5dd5add531b78b77 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211460 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Phil Quitslund <pquitslund@google.com>