Static interop should use compiler-dependent global context #52955
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
globalThis
everywhere, but this is not necessarily available. Instead, we should have the compilers decide what to use for interop. For dart2js, this is likelyself
and for DDC, this is likelydart.global
. Long-term, we should avoid making interop based on the global context unless requested and instead define a scope where we expect users to export their JS code to. We do need to be careful about the compilers shadowing names, however.The text was updated successfully, but these errors were encountered: