From ac8ab0ca0b4c7a9bc65c761273afe12d1e6f873e Mon Sep 17 00:00:00 2001 From: Livia Medeiros Date: Thu, 15 Sep 2022 02:16:01 +0900 Subject: [PATCH] fs: remove unused option in `fs.fstatSync()` PR-URL: https://github.com/nodejs/node/pull/44613 Reviewed-By: Zeyu "Alex" Yang Reviewed-By: Daeyeon Jeong Reviewed-By: theanarkh --- lib/fs.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index bbf08f85b187ac..4862b8cd698018 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1531,11 +1531,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);