summaryrefslogtreecommitdiff
path: root/test/parallel/test-dgram-implicit-bind.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-dgram-implicit-bind.js')
-rw-r--r--test/parallel/test-dgram-implicit-bind.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-dgram-implicit-bind.js b/test/parallel/test-dgram-implicit-bind.js
index 8b78bd66c6..27cbdba398 100644
--- a/test/parallel/test-dgram-implicit-bind.js
+++ b/test/parallel/test-dgram-implicit-bind.js
@@ -22,8 +22,8 @@ target.on('message', function(buf) {
target.on('listening', function() {
// Second .send() call should not throw a bind error.
- source.send(Buffer('abc'), 0, 3, common.PORT, '127.0.0.1');
- source.send(Buffer('def'), 0, 3, common.PORT, '127.0.0.1');
+ source.send(Buffer.from('abc'), 0, 3, common.PORT, '127.0.0.1');
+ source.send(Buffer.from('def'), 0, 3, common.PORT, '127.0.0.1');
});
target.bind(common.PORT);