Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long and Float values are converted to String when passed to node-lib functions #4421

Closed
aro opened this issue Feb 15, 2017 · 0 comments
Closed
Assignees
Labels

Comments

@aro
Copy link
Contributor

aro commented Feb 15, 2017

Javascript values that have an underlying value of Java Long or Float, are converted to String when stored in node using nodeLib create or modify functions.

The problem seems to be that values of type Long and Double are not considered in the conversions done in ScriptValueTranslator.java.

For example when taking the size of a binary stream (ByteSource.size()) and pass it to a node property, it will be converted to String.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants