Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-stream-writev.js')
-rw-r--r--test/parallel/test-stream-writev.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-stream-writev.js b/test/parallel/test-stream-writev.js
index 2aa992b4a9a..0a51478b7ea 100644
--- a/test/parallel/test-stream-writev.js
+++ b/test/parallel/test-stream-writev.js
@@ -82,7 +82,7 @@ function test(decode, uncork, multi, next) {
if (multi)
w.cork();
- w.write(new Buffer('!'), 'buffer', cnt('!'));
+ w.write(Buffer.from('!'), 'buffer', cnt('!'));
w.write('\nand then...', 'binary', cnt('and then'));
if (multi)