From 4a72fa4fe38799e6710ed2d5f4e5694f11dbf2a4 Mon Sep 17 00:00:00 2001 From: Adrian Punga Date: Sun, 27 Nov 2016 10:54:29 +0200 Subject: [PATCH] Buffer without new is now deprecated in node.js --- lib/connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connection.js b/lib/connection.js index 6584c871d..8ca279dd4 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -296,7 +296,7 @@ Connection.prototype.execute = function(config, more) { this._send(0x45, more); }; -var emptyBuffer = Buffer(0); +var emptyBuffer = new Buffer(0); Connection.prototype.flush = function() { //0x48 = 'H'