summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-04-26 13:22:14 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2018-04-28 17:15:39 +0200
commitbdf0d9b364094805183be3197b6099dd0c88a246 (patch)
tree12ada8b2b8975cf87e3e147f541707dfd99b34c8 /lib
parent65021c5632df10e40b102c29f2a5711b9acbcb01 (diff)
downloadandroid-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.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/fs.js b/lib/fs.js
index c49d470f03..50913866f9 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -153,9 +153,7 @@ function makeStatsCallback(cb) {
};
}
-function isFd(path) {
- return (path >>> 0) === path;
-}
+const isFd = isUint32;
fs.Stats = Stats;