mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
fs: fix file descriptor validator
PR-URL: https://github.com/nodejs/node/pull/49752 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
c9e72e34ab
commit
5d6aa854d6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue