diff --git a/lib/fs.js b/lib/fs.js index d71e31565fbad6..2d41f17e8d1de5 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -151,9 +151,7 @@ function makeStatsCallback(cb) { }; } -function isFd(path) { - return (path >>> 0) === path; -} +const isFd = isUint32; fs.Stats = Stats;