Skip to content

Conversation

@mikkeloscar
Copy link

It is undefined to define the length on an already allocated Buffer.
This removes any instances of that and makes sure to return a buffer of the expected length.

This also allows js-codepage to work with the latest version of node.

I know a few similar PR has been made, but this one aims to solve all of the related issues.

@mikkeloscar
Copy link
Author

Hello, could you give me a status on this? I'm more than happy to change anything if needed.

Also note that the travis build only failed because of a timeout in the build, so it is passing if travis isn't slow. :)

@SheetJSDev
Copy link
Contributor

@mikkeloscar sorry for the delay, the current version (where all manual length assignments were replaced with slices) passes all of the tests in node 0.8 through 5.0 and has been pushed as version 1.4.0

@mikkeloscar
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants