Closed dasa closed 8 years ago
Yes, I agree on this one for convenience... I was annoyed by this behavior lately. Right now the workaround is:
import static jsweet.util.Globals.string; [...] string(myString).length;
Not very nice for sure, so I will add the support for version 1 RC1.
This should now work with the new jsweet-transpiler SNAPSHOT.
I am closing the issue. Tell me if it does not work.
It's working good! Thanks :+1:
The Java String's
length
method should be transpiled to the JSlength
property.