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
If I pass a NaN float to the JSONSerialization.data(withJSONObject:options: ) it crashes. Given that the function throws errors would it not be more sensible for it to throw an "invalid float" error which I could catch.
Example code below crashes instead of the error being handled.
Environment
macOS: Catalina 10.15.1
XCode: 11.2.1
Additional Detail from JIRA
md5: 76516cce1c2232d02dc388d3bc2c4cfc
Issue Description:
If I pass a NaN float to the JSONSerialization.data(withJSONObject:options: ) it crashes. Given that the function throws errors would it not be more sensible for it to throw an "invalid float" error which I could catch.
Example code below crashes instead of the error being handled.
The text was updated successfully, but these errors were encountered: