Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When converting arguments JS->Java, handle integers correctly
Summary: If a folly::dynamic contains a double when a Java method is declared to take an int, getInt() will be called, and a C++ exception will be thrown. This change uses similar logic to NativeReadableMap.getInt() to convert a folly::dynamic double to a jint. This will still throw an exception if the JS value cannot be represented as a jint without loss. Reviewed By: fromcelticpark Differential Revision: D10209492 fbshipit-source-id: fd96416200c6b283ce5c8f8fa4c227ceb8f43054
- Loading branch information