fix js-interop tearoffs and optional arguments #25759
Labels
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.
web-dart2js
web-js-interop
Issues that impact all js interop
The current behavior in the new js-interop is to omit default arguments that were not specified when making an interop call. This is so that the JS side can fill in default values. The SSA implementation does this even when default values are specified. This doesn't work however when using a tearoff of the function: in that case we do include the default arguments (in dart2js).
It might be possible to fix tearoffs, but the behavior might still be confusing. @jacob314 - what do you think about changing things as follows:
The text was updated successfully, but these errors were encountered: