Extension types on JS types generate suboptimal method invocations #55340
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
I just tried rewriting some use of
package:js
todart:js_interop
and noticed that it generates rather inefficient function invocations:Previously, this snippet:
Produced a direct call to the function
s
:After switching to
dart:js_interop
, it now generates:The previous code seems more efficient and smaller–is there a rationale for this change or is it perhaps a regression?
The text was updated successfully, but these errors were encountered: