Skip to content

Commit 4a72fa4

Browse files
authored
Buffer without new is now deprecated in node.js
1 parent 83a946f commit 4a72fa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Connection.prototype.execute = function(config, more) {
296296
this._send(0x45, more);
297297
};
298298

299-
var emptyBuffer = Buffer(0);
299+
var emptyBuffer = new Buffer(0);
300300

301301
Connection.prototype.flush = function() {
302302
//0x48 = 'H'

0 commit comments

Comments
 (0)