File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ function unlink(path) {
94
94
}
95
95
96
96
function fsync ( fd ) {
97
+ fd = getValidatedFd ( fd ) ;
98
+
97
99
return binding . fsyncSync ( fd ) ;
98
100
}
99
101
Original file line number Diff line number Diff line change @@ -94,11 +94,11 @@ declare namespace InternalFSBinding {
94
94
function fstat ( fd : number , useBigint : boolean , usePromises : typeof kUsePromises ) : Promise < Float64Array | BigUint64Array > ;
95
95
function fstat ( fd : number , useBigint : true , usePromises : typeof kUsePromises ) : Promise < BigUint64Array > ;
96
96
function fstat ( fd : number , useBigint : false , usePromises : typeof kUsePromises ) : Promise < Float64Array > ;
97
- function fsync ( fd : number ) : void ;
98
97
99
- function fsyncSync ( fd : number , req : FSReqCallback ) : void ;
100
- function fsyncSync ( fd : number , req : undefined , ctx : FSSyncContext ) : void ;
101
- function fsyncSync ( fd : number , usePromises : typeof kUsePromises ) : Promise < void > ;
98
+ function fsync ( fd : number , req : FSReqCallback ) : void ;
99
+ function fsync ( fd : number , req : undefined , ctx : FSSyncContext ) : void ;
100
+ function fsync ( fd : number , usePromises : typeof kUsePromises ) : Promise < void > ;
101
+ function fsyncSync ( fd : number ) : void ;
102
102
103
103
function ftruncate ( fd : number , len : number , req : FSReqCallback ) : void ;
104
104
function ftruncate ( fd : number , len : number , req : undefined , ctx : FSSyncContext ) : void ;
You can’t perform that action at this time.
0 commit comments