diff --git a/lib/fs.js b/lib/fs.js index c46e23061cbecd..42a37838e9ee6d 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1537,11 +1537,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);