DDC should throw TypeErrorImpl for both cast and type errors #41008
Labels
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop
web-dev-compiler
Per #40763, I landed the change to make the ddc implementation classes TypeErrorImpl and CastErrorImpl 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 (TypeErrorImpl) 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: