dart2js should throw TypeErrorImplementation for both Cast and Type errors #41007
Labels
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop
web-dart2js
web-dev-compiler
Per #40763, I landed the change to make the dart2js implementation classes TypeErrorImplementation and CastErrorImplementation both implement TypeError and CastError here.
CastError will be deprecated in a follow up CL. The web compilers should be changed to throw instances of a single implementation class (TypeErrorImplementation) for all implicit and explicit casts. This change should be non-breaking given the changes in my CL.
cc @sigmundch @rakudrama @fishythefish @nshahan
The text was updated successfully, but these errors were encountered: