Skip to content

Patch: fix buffer() warning #22

Open
@bastien-roucaries

Description

@bastien-roucaries

Hi,

Could you please apply:

commit 07277d8b164659247901085ab1fc63b8e18586f1 (HEAD -> patched)
Author: Bastien Roucariès <rouca@debian.org>
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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions