fs: remove unused option in fs.fstatSync()

PR-URL: https://github.com/nodejs/node/pull/44613
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: theanarkh <theratliter@gmail.com>
This commit is contained in:
Livia Medeiros authored and Juan José Arboleda committed 2022-10-11 14:45:24 -05:00
1 parent 90eaae3ef1
commit bbbb4460ee
1 file changed
+1 -2
+1 -2
View File
@@ -1529,11 +1529,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);