Skip to content

dart2js should throw TypeErrorImplementation for both Cast and Type errors #41007

Closed
@leafpetersen

Description

@leafpetersen

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

Metadata

Metadata

Labels

area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-dart2jsweb-dev-compiler

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions