Skip to content

Commit

Permalink
fs: fix file descriptor validator
Browse files Browse the repository at this point in the history
PR-URL: nodejs#49752
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
anonrig authored and alexfernandez committed Nov 1, 2023
1 parent f43f5a2 commit ae03fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const {
CHAR_BACKWARD_SLASH,
} = require('internal/constants');
const {
isUint32,
isInt32,
parseFileMode,
validateBoolean,
validateBuffer,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ae03fe8

Please sign in to comment.