Skip to content

Commit 85ab2f8

Browse files
LiviaMedeirosRafaelGSS
authored andcommitted
fs: remove unused option in fs.fstatSync()
PR-URL: #44613 Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: theanarkh <theratliter@gmail.com>
1 parent 3f710fa commit 85ab2f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/fs.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1537,11 +1537,10 @@ function hasNoEntryError(ctx) {
15371537
* @param {number} fd
15381538
* @param {{
15391539
* bigint?: boolean;
1540-
* throwIfNoEntry?: boolean;
15411540
* }} [options]
15421541
* @returns {Stats}
15431542
*/
1544-
function fstatSync(fd, options = { bigint: false, throwIfNoEntry: true }) {
1543+
function fstatSync(fd, options = { bigint: false }) {
15451544
fd = getValidatedFd(fd);
15461545
const ctx = { fd };
15471546
const stats = binding.fstat(fd, options.bigint, undefined, ctx);

0 commit comments

Comments
 (0)