diff options
Diffstat (limited to 'benchmark/http_simple.js')
-rw-r--r-- | benchmark/http_simple.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/http_simple.js b/benchmark/http_simple.js index 0f36d3b6ce..699f3b7c0b 100644 --- a/benchmark/http_simple.js +++ b/benchmark/http_simple.js @@ -51,7 +51,7 @@ var server = module.exports = http.createServer(function(req, res) { if (n <= 0) throw new Error('buffer called with n <= 0'); if (storedBuffer[n] === undefined) { - storedBuffer[n] = new Buffer(n); + storedBuffer[n] = Buffer.allocUnsafe(n); for (i = 0; i < n; i++) { storedBuffer[n][i] = 'C'.charCodeAt(0); } |