[dart:js_interop] Refactor JS types to use extension types #52687
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, we use a "custom" implementation of
@staticInterop
to implementdart:js_interop
's JS types e.g.JSString
. These types lower to different types based on backends, and their external members are also patched in instead of lowered. Since these types are only loosely related to@staticInterop
, we should instead use a different annotation e.g.@JSType
that makes it clear these types are different from other@staticInterop
types.Edit: I don't think using a different annotation is necessary as we can move directly to extension types. As such, I'm refocusing this bug to accomplish that effort.
The text was updated successfully, but these errors were encountered: