Skip to content

Commit 835f9fe

Browse files
anonrigruyadorno
authored andcommitted
fs: fix file descriptor validator
PR-URL: #49752 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 80b342c commit 835f9fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const {
131131
CHAR_BACKWARD_SLASH,
132132
} = require('internal/constants');
133133
const {
134-
isUint32,
134+
isInt32,
135135
parseFileMode,
136136
validateBoolean,
137137
validateBuffer,
@@ -201,7 +201,7 @@ function makeStatsCallback(cb) {
201201
};
202202
}
203203

204-
const isFd = isUint32;
204+
const isFd = isInt32;
205205

206206
function isFileType(stats, fileType) {
207207
// Use stats array directly to avoid creating an fs.Stats instance just for

0 commit comments

Comments
 (0)