summaryrefslogtreecommitdiff
path: root/benchmark/buffers/buffer-tostring.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/buffers/buffer-tostring.js')
-rw-r--r--benchmark/buffers/buffer-tostring.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/buffers/buffer-tostring.js b/benchmark/buffers/buffer-tostring.js
index 937a84b267..99ae0ec077 100644
--- a/benchmark/buffers/buffer-tostring.js
+++ b/benchmark/buffers/buffer-tostring.js
@@ -12,7 +12,7 @@ function main(conf) {
const arg = conf.arg === 'true';
const len = conf.len | 0;
const n = conf.n | 0;
- const buf = Buffer(len).fill(42);
+ const buf = Buffer.alloc(len, 42);
var i;
bench.start();