[ 
https://issues.apache.org/jira/browse/CB-11737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15432512#comment-15432512
 ] 

Chris Brody commented on CB-11737:
----------------------------------

By "failing test" do you mean a failed assertion, an uncaught exception, or 
something else?

Unfortunately I could not see how to run the cordova-ios tests. Any pointers?

I think the underlying cause is that while Javascript, Java, and Objective 
C/Swift support Nan and Infinity JSON does not support these values. This can 
lead to strange inconsistencies since the Windows platform does NOT use JSON 
and is able to handle this case.

I think the most important things are that we get this case documented (along 
with CB-9435) for plugin developers and provide a way (such as how to do 
try/catch) to deal with this case. My first attempt to use try/catch to prevent 
this crash did not work.

> cordova-ios crash in case of Infinity value in result
> -----------------------------------------------------
>
>                 Key: CB-11737
>                 URL: https://issues.apache.org/jira/browse/CB-11737
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Chris Brody
>            Assignee: Shazron Abdullah
>
> In case an iOS plugin attempts to return a JSON result with an Infinity value 
> it will crash with NSInvalidArgumentException. I discovered this when 
> investigating this issue: 
> https://github.com/litehelpers/Cordova-sqlite-storage/issues/405
> Similar to: CB-9435



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to