Skip to content

Conversation

Alorel
Copy link
Contributor

@Alorel Alorel commented Apr 25, 2018

new Buffer() no longer works in Node 10. This should fix it.

@LinusU
Copy link
Collaborator

LinusU commented Apr 25, 2018

Thanks for the quick pull request!

Could you use this module? https://www.npmjs.com/package/buffer-from

@Alorel
Copy link
Contributor Author

Alorel commented Apr 25, 2018

Done

@@ -12,6 +12,8 @@ try {
/* nop */
}

var newBuffer = require('buffer-from');
Copy link
Collaborator

@LinusU LinusU Apr 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind renaming this to bufferFrom or similar? ☺️

Just so that no-one confuses it with the new Buffer interface which allows more calling conventions...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jimmywarting
Copy link
Contributor

Time for native Buffer.from? looking at other sub dependencies of mine trying to reduce size

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

Successfully merging this pull request may close these issues.

3 participants