Skip to content

Commit ac8ab0c

Browse files
fs: remove unused option in fs.fstatSync()
PR-URL: #44613 Reviewed-By: Zeyu "Alex" Yang <[email protected]> Reviewed-By: Daeyeon Jeong <[email protected]> Reviewed-By: theanarkh <[email protected]>
1 parent b809792 commit ac8ab0c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/fs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,11 +1531,10 @@ function hasNoEntryError(ctx) {
15311531
* @param {number} fd
15321532
* @param {{
15331533
* bigint?: boolean;
1534-
* throwIfNoEntry?: boolean;
15351534
* }} [options]
15361535
* @returns {Stats}
15371536
*/
1538-
function fstatSync(fd, options = { bigint: false, throwIfNoEntry: true }) {
1537+
function fstatSync(fd, options = { bigint: false }) {
15391538
fd = getValidatedFd(fd);
15401539
const ctx = { fd };
15411540
const stats = binding.fstat(fd, options.bigint, undefined, ctx);

0 commit comments

Comments
 (0)