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

Invalid Integer error on Negative Infinity #10

Open
lisajamhoury opened this issue Aug 16, 2016 · 0 comments
Open

Invalid Integer error on Negative Infinity #10

lisajamhoury opened this issue Aug 16, 2016 · 0 comments

Comments

@lisajamhoury
Copy link

Thanks so much for this helpful library!

I’m using the binarypack through peer.js to send data from the Kinect 2, using Kinect2 library, which sometimes includes negative infinity. This is causing me to get the error “Invalid Integer” repeatedly from line 400, which is slowing down my peer connection significantly. I’ve fixed it in my own code with adding this as an additional option at line 399:

else if(num===Number.NEGATIVE_INFINITY){num=0;}

In my use case setting num to 0 solves the issue. Although there's likely a better way to add a more universal fix.

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

No branches or pull requests

1 participant