From f71e5b46e20e611a5c35f85cedf3f31959a3b8c6 Mon Sep 17 00:00:00 2001 From: LiviaMedeiros Date: Mon, 12 Sep 2022 21:11:03 +0800 Subject: [PATCH] fs: remove unused option in `fs.fstatSync()` --- lib/fs.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index 8272fb679ad37f..fe83408feb54e8 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1535,11 +1535,10 @@ function hasNoEntryError(ctx) { * @param {number} fd * @param {{ * bigint?: boolean; - * throwIfNoEntry?: boolean; * }} [options] * @returns {Stats} */ -function fstatSync(fd, options = { bigint: false, throwIfNoEntry: true }) { +function fstatSync(fd, options = { bigint: false }) { fd = getValidatedFd(fd); const ctx = { fd }; const stats = binding.fstat(fd, options.bigint, undefined, ctx);