Closed NathanWalker closed 1 year ago
Good catch! I will take a look and handle this properly. Seems like we are not handling NSError
inside toJSValue
converter so it just skips it and gives an error. Ideally we should rely on core to marshal any value we can't on our own.
Fixed in 1.0.0-alpha.23
.
Using
react-native-auth0
2.17.0 as example case, appearsNSError
is not properly handled. Might be better to use @nativescript/core 8.4+Utils.dataDeserialize(data)
instead of custom handling there. Thethrow
is likely unnecessary on this line - rather can just return the data object "as-is" which is what core Utils does in this case.