diff --git a/lib/fs.js b/lib/fs.js index 60594afe9809ad..015e424efbdf4c 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -131,7 +131,7 @@ const { CHAR_BACKWARD_SLASH, } = require('internal/constants'); const { - isUint32, + isInt32, parseFileMode, validateBoolean, validateBuffer, @@ -201,7 +201,7 @@ function makeStatsCallback(cb) { }; } -const isFd = isUint32; +const isFd = isInt32; function isFileType(stats, fileType) { // Use stats array directly to avoid creating an fs.Stats instance just for