diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-04-26 13:22:14 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-04-28 17:15:39 +0200 |
commit | bdf0d9b364094805183be3197b6099dd0c88a246 (patch) | |
tree | 12ada8b2b8975cf87e3e147f541707dfd99b34c8 /lib | |
parent | 65021c5632df10e40b102c29f2a5711b9acbcb01 (diff) | |
download | android-node-v8-bdf0d9b364094805183be3197b6099dd0c88a246.tar.gz android-node-v8-bdf0d9b364094805183be3197b6099dd0c88a246.tar.bz2 android-node-v8-bdf0d9b364094805183be3197b6099dd0c88a246.zip |
fs: point isFd to isUint32
This commit updates the isFd function to call isUint32 instead of
doing the same thing.
PR-URL: https://github.com/nodejs/node/pull/20330
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fs.js | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -153,9 +153,7 @@ function makeStatsCallback(cb) { }; } -function isFd(path) { - return (path >>> 0) === path; -} +const isFd = isUint32; fs.Stats = Stats; |