Skip to content

Commit fa56769

Browse files
committed
fs: fix file descriptor validator
1 parent e329a11 commit fa56769

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)