summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-append-file.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-fs-append-file.js')
-rw-r--r--test/parallel/test-fs-append-file.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-fs-append-file.js b/test/parallel/test-fs-append-file.js
index 01742aa6f8..5970c8cec1 100644
--- a/test/parallel/test-fs-append-file.js
+++ b/test/parallel/test-fs-append-file.js
@@ -54,7 +54,7 @@ fs.appendFile(filename2, s, function(e) {
var filename3 = join(common.tmpDir, 'append3.txt');
fs.writeFileSync(filename3, currentFileData);
-var buf = new Buffer(s, 'utf8');
+var buf = Buffer.from(s, 'utf8');
fs.appendFile(filename3, buf, function(e) {
if (e) throw e;