Skip to content

Commit f48e8fa

Browse files
author
Miroslav Bajtoš
committed
fixup! pass data to cb in benchmark
1 parent f9ce2aa commit f48e8fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

benchmark/fs/stat.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ function createCallBackBasedTest(stat) {
5656
return function runStatViaCallbacks(cb) {
5757
stat(FILES[0], function(err, data) {
5858
if (err) throw err;
59-
second();
59+
second(data);
6060
});
6161

6262
function second() {
6363
stat(FILES[1], function(err, data) {
6464
if (err) throw err;
65-
third();
65+
third(data);
6666
});
6767
}
6868

6969
function third() {
7070
stat(FILES[2], function(err, data) {
7171
if (err) throw err;
72-
cb();
72+
cb(data);
7373
});
7474
}
7575
};

0 commit comments

Comments
 (0)