node-wav icon indicating copy to clipboard operation
node-wav copied to clipboard

Using new Buffer() instead of just Buffer()

Open kribblo opened this issue 9 years ago • 0 comments

From Node 7 onwards you get this message:

DeprecationWarning: Using Buffer without new will soon stop working. Use new Buffer(), or preferably Buffer.from(), Buffer.allocUnsafe() or Buffer.alloc() instead.

Should probably be Buffer.from() but it's only available from Node 5, if that's important.

kribblo avatar Nov 11 '16 10:11 kribblo