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

Make SafeBuffer's prototype inherit from Buffer #23

Merged
merged 1 commit into from
Jul 5, 2019
Merged

Make SafeBuffer's prototype inherit from Buffer #23

merged 1 commit into from
Jul 5, 2019

Conversation

vkarpov15
Copy link
Contributor

Re: Automattic/mongoose#7102, you get annoying issues if you use SafeBuffer's prototype, like:

const Buffer = require('safe-buffer').Buffer;
Buffer.prototype.copy; // undefined on Node.js 4.2

This fixes that

vkarpov15 added a commit to Automattic/mongoose that referenced this pull request Oct 21, 2018
vkarpov15 added a commit to Automattic/mongoose that referenced this pull request Nov 5, 2018
@feross feross merged commit a43206b into feross:master Jul 5, 2019
@feross
Copy link
Owner

feross commented Jul 5, 2019

Thanks for the PR, this is released as 5.2.0.

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.

2 participants