Unable to use JS interop on CustomEvent in dart2js #39531
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
web-js-interop
Issues that impact all js interop
Currently its not possible to use
package:js
to wrap JavaScriptCustomEvent
s when the code is compiled withdart2js
. The following code works withDDC
but will fail ondart2js
.Console using DDC
Console using dart2js
It appears that internally
dart2js
is not using the js-interop definition ofCustomEvent
but instead is using an internal typeInterceptor
. This prevents a Dart developer from rolling their ownpackage:html
since events are not using the defined types.Environment
The text was updated successfully, but these errors were encountered: