From 49abda71e2fc69b9d5e47aa9b6f7ab14bd0681ee Mon Sep 17 00:00:00 2001 From: Narasimha Prasanna HN Date: Sat, 21 Nov 2020 07:09:21 +0530 Subject: [PATCH] benchmark : changed `fstat` to `fstatSync` PR-URL: https://github.com/nodejs/node/pull/36206 Fixes: https://github.com/nodejs/node/issues/36199 Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil Reviewed-By: Rich Trott Reviewed-By: James M Snell --- benchmark/fs/bench-statSync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/fs/bench-statSync.js b/benchmark/fs/bench-statSync.js index 0c9366a402cb71..e75d6603fcfc64 100644 --- a/benchmark/fs/bench-statSync.js +++ b/benchmark/fs/bench-statSync.js @@ -21,6 +21,6 @@ function main({ n, statSyncType }) { } bench.end(n); - if (statSyncType === 'fstat') + if (statSyncType === 'fstatSync') fs.closeSync(arg); }