[dart2js] Should type-variable erasure ignore type variable in type literals? #51894
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
dart2js-optimization
web-dart2js
I tried replacing
JSArray.runtimeType
with:This defeats type erasure, even with
--lax-runtime-types
in small programs that use.runtimeType
but don't otherwise useE
.Should we:
E
in the context of a type literal inside an implementation ofruntimeType
and later (2) replace this with the 'erased' type.JSArray.E
for some other purpose and go ahead with the change. This will make some micro-benchmarks slower, but more representative of real-world performance.The text was updated successfully, but these errors were encountered: