Skip to content

Make SafeBuffer's prototype inherit from Buffer#23

Merged
feross merged 1 commit intofeross:masterfrom
vkarpov15:patch-1
Jul 5, 2019
Merged

Make SafeBuffer's prototype inherit from Buffer#23
feross merged 1 commit intofeross:masterfrom
vkarpov15:patch-1

Conversation

@vkarpov15
Copy link
Copy Markdown
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
Copy Markdown
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