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 'benchmark/dgram/single-buffer.js')
-rw-r--r--benchmark/dgram/single-buffer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/dgram/single-buffer.js b/benchmark/dgram/single-buffer.js
index 765311a72f3..2676e0e74cf 100644
--- a/benchmark/dgram/single-buffer.js
+++ b/benchmark/dgram/single-buffer.js
@@ -25,7 +25,7 @@ function main(conf) {
len = +conf.len;
num = +conf.num;
type = conf.type;
- chunk = new Buffer(len);
+ chunk = Buffer.allocUnsafe(len);
server();
}