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
Unfortunately joi relies on JSON.stringify which transforms a few types, NaN being converted to null.
If you find a clever way to deal with it I'll take it.
@Marsup I searched for this issue, the only "workaround" seems to be transforming NaN and Infinity to their string equivalents and then transforming them back while doing JSON.parse. Although I think we don't need the parse case here, as we're only printing it out.
If you think we would use this, I'd be happy to make a PR.
This code:
prints in the console:
and could be really confusing to debug!
The text was updated successfully, but these errors were encountered: