You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We don't guarantee that integers will stay integers. Please don't rely on a particular numeric type. I suggest to expect a Number instead and use Number.intValue()/doubleValue() to convert. If you use the polyglot Value API, there's Value.fitsInInt() and Value.asInt()/asDouble() for that purpose. You can also use IntConsumer or DoubleConsumer to force automatic conversion.
Reproducible test here
Steps to reproduce:
Right now, step (3) fails and returns an double.
Note: This only happens when we use an async function. Synchronous function do seem to work fine 👍
The text was updated successfully, but these errors were encountered: