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

replace deprecated new Buffer() #71

Merged
merged 1 commit into from Apr 24, 2017

Conversation

notslang
Copy link
Contributor

...with Buffer.from() & Buffer.allocUnsafe()

Copy link
Collaborator

@jhermsmeier jhermsmeier left a comment

Choose a reason for hiding this comment

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

Looks good to me, although I personally don't like how and why new Buffer() was deprecated – but we'll have to switch sooner or later anyways. @themasch, thoughts?

@notslang
Copy link
Contributor Author

I personally don't like how and why new Buffer() was deprecated

I think this was the issue that prompted it: nodejs/node#4660

@themasch
Copy link
Sponsor Contributor

Compared master to this PR and it really seems to be slightly faster. Thanks again @slang800!

@themasch themasch merged commit ac21d37 into webtorrent:master Apr 24, 2017
@themasch themasch mentioned this pull request Apr 24, 2017
@notslang notslang deleted the remove-new-buffer branch April 25, 2017 00:13
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.

None yet

3 participants