NoSuchMethodError should expose the receiver and memberName from the exception #15169
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-duplicate
Closed in favor of an existing report
type-enhancement
A request for a change that isn't a bug
In AngularDart, we catch NoSuchMethodErrors while determining if an expression references a field or a method.
https://github.com/angular/angular.dart/blob/3d2496f9514102dd4aa2ca29f9df60e7a4e73376/lib/core/parser/backend.dart#L51
However, if a field getter throws a NoSuchMethodError due to a bug, we will handle it and return a garbage closure to the user.
If we had access to the 'receiver' in the exception, we would be able to identify actual errors which we should re-throw in this try-catch block.
The text was updated successfully, but these errors were encountered: