Unintercepted JS types/objects should be intercepted as some Dart Interceptor type #47679
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
type-design
web-js-interop
Issues that impact all js interop
We currently have Interceptors in the web compilers to represent JS types and objects e.g.
JavaScriptObject
,Native
classes, etc. However, these don't seem to fully capture all possible things in JS that you can operate. For example, the Symbol class doesn't seem to have a target interceptor. There was also discussion on whether or notBigInt
is properly intercepted. The lack of an intercepted type means interop with these types/objects proves painful, especially when we move to the model of exposingJavaScriptObject
as the catch-all for all the types/objects we want to expose to users with extension types. Collections are also affected e.g. lack ofhashCode
. We should distinguish between the set of unintercepted things and determine where in the Interceptor hierarchy they should exist.The text was updated successfully, but these errors were encountered: