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
While the JSValueCompatible APIs are failable, the underlying conversion of calling SignedInteger.init(_:) and UnsignedInteger.init(_:)directly can crash at runtime if:
double.isNan
!double.isFinite
double > .max || double < .min
Ideally, none of these would crash and return nil instead:
While the
JSValueCompatible
APIs are failable, the underlying conversion of callingSignedInteger.init(_:)
andUnsignedInteger.init(_:)
directly can crash at runtime if:double.isNan
!double.isFinite
double > .max || double < .min
Ideally, none of these would crash and return
nil
instead:Int.construct(from: JSValue.number(.infinity))
Int.construct(from: JSValue.number(.nan))
Int.construct(from: JSValue.number(numberGreaterThanIntMax)
Int.construct(from: JSValue.number(numberLessThanIntMin)
The text was updated successfully, but these errors were encountered: