From d9784b5c95e84eb6f19e32c7e170f43ce0dcd006 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A1=D0=BA=D0=BE=D0=B2=D0=BE=D1=80=D0=BE=D0=B4=D0=B0=20?= =?utf8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=90=D0=BD=D0=B4=D1=80?= =?utf8?q?=D0=B5=D0=B5=D0=B2=D0=B8=D1=87?= Date: Thu, 22 Feb 2018 19:29:45 +0300 Subject: [PATCH] new Buffer -> Buffer.from This is benign due to the module nature, but just for consistency. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fa57ec4..06b36e7 100644 --- a/index.js +++ b/index.js @@ -1608,7 +1608,7 @@ Buffer.prototype.fill = function fill (val, start, end, encoding) { } else { var bytes = Buffer.isBuffer(val) ? val - : new Buffer(val, encoding) + : Buffer.from(val, encoding) var len = bytes.length if (len === 0) { throw new TypeError('The value "' + val + -- 2.34.1