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/child_process/child-process-read.js')
-rw-r--r--benchmark/child_process/child-process-read.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/child_process/child-process-read.js b/benchmark/child_process/child-process-read.js
index 0ff08af7948..3c0144116f5 100644
--- a/benchmark/child_process/child-process-read.js
+++ b/benchmark/child_process/child-process-read.js
@@ -25,11 +25,11 @@ function main({ dur, len }) {
const child = child_process.spawn('yes', [msg], options);
var bytes = 0;
- child.stdout.on('data', function(msg) {
+ child.stdout.on('data', (msg) => {
bytes += msg.length;
});
- setTimeout(function() {
+ setTimeout(() => {
if (process.platform === 'win32') {
// Sometimes there's a yes.exe process left hanging around on Windows...
child_process.execSync(`taskkill /f /t /pid ${child.pid}`);