summaryrefslogtreecommitdiff
path: root/test/fixtures/print-chars-from-buffer.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixtures/print-chars-from-buffer.js')
-rw-r--r--test/fixtures/print-chars-from-buffer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fixtures/print-chars-from-buffer.js b/test/fixtures/print-chars-from-buffer.js
index 53ca743b06..fc902a896f 100644
--- a/test/fixtures/print-chars-from-buffer.js
+++ b/test/fixtures/print-chars-from-buffer.js
@@ -2,7 +2,7 @@ var assert = require('assert');
var n = parseInt(process.argv[2]);
-var b = new Buffer(n);
+var b = Buffer.allocUnsafe(n);
for (var i = 0; i < n; i++) {
b[i] = 100;
}