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

Patch: fix buffer() warning #22

Open
bastien-roucaries opened this issue Jan 7, 2019 · 0 comments
Open

Patch: fix buffer() warning #22

bastien-roucaries opened this issue Jan 7, 2019 · 0 comments

Comments

@bastien-roucaries
Copy link

Hi,

Could you please apply:

commit 07277d8b164659247901085ab1fc63b8e18586f1 (HEAD -> patched)
Author: Bastien Roucariès <[email protected]>
Date:   Mon Jan 7 01:16:24 2019 +0100

    Fix Buffer warning

diff --git a/test/buf.js b/test/buf.js
index 8217819..d7c37eb 100644
--- a/test/buf.js
+++ b/test/buf.js
@@ -18,7 +18,7 @@ TestWritable.prototype._write = function(chunk, encoding, cb) {
     cb();
 };
 
-var buf = Buffer([ 88 ]);
+var buf = Buffer.from([ 88 ]);
 
 test('.writable writing ArrayBuffer', function(t) {
     var writable = new TestWritable();
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

No branches or pull requests

1 participant