dart2js passes type parameters to @JS constructors #43373
Labels
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.
P2
A bug or feature request we're likely to work on
web-dart2js
web-js-interop
Issues that impact all js interop
We have a @js annotated class with a type parameter:
And an instantiation:
This causes an exception at runtime due to passing the
SkDeletable
type to theFinalizationRegistry
constructor. The generated code is something like this:I expect for dart2js not to pass type parameters to native constructors.
The text was updated successfully, but these errors were encountered: