Skip to content

Commit

Permalink
fs: fix file descriptor validator
Browse files Browse the repository at this point in the history
PR-URL: #49752
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
anonrig authored and ruyadorno committed Sep 28, 2023
1 parent 80b342c commit 835f9fe
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 835f9fe

Please sign in to comment.