Skip to content

Commit

Permalink
Use Buffer.from instead of deprecated Buffer constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
pasieronen authored and brianc committed Jan 5, 2018
1 parent 70a8ee1 commit 9825e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/connection/error-tests.js
Expand Up @@ -44,7 +44,7 @@ suite.test('connection does not emit ECONNRESET errors during disconnect also wh
var server = net.createServer(function (c) {
socket = c
c.once('data', function (data) {
c.write(new Buffer('S', 'utf8'))
c.write(Buffer.from('S'))
})
})

Expand Down

0 comments on commit 9825e7c

Please sign in to comment.