[dart2js] Incorrect code generated in body of a function used as a .call getter #55298
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
There is some randomness thrown into this example to avoid inlining.
In the main method
s.length
gets compiled tos.length
in JavaScript.In the body of the
.call
functions.length
gets compiled tos.get$length
in JavaScript which is not defined and will cause an error to be thrown.The text was updated successfully, but these errors were encountered: