diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-11-27 19:59:29 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-11-30 13:45:38 +0100 |
commit | 1f9a5ae7aadd073ac61933226687a4483f8eccf4 (patch) | |
tree | 2d07023ce21a0aa0339344ea513bce8490c27757 /lib/tty.js | |
parent | 7fc5980cfe79c9b7ff19837397823a583c9fd8fe (diff) | |
download | android-node-v8-1f9a5ae7aadd073ac61933226687a4483f8eccf4.tar.gz android-node-v8-1f9a5ae7aadd073ac61933226687a4483f8eccf4.tar.bz2 android-node-v8-1f9a5ae7aadd073ac61933226687a4483f8eccf4.zip |
lib: use static Number properties from primordials
PR-URL: https://github.com/nodejs/node/pull/30686
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'lib/tty.js')
-rw-r--r-- | lib/tty.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tty.js b/lib/tty.js index 95f2624708..583cc13298 100644 --- a/lib/tty.js +++ b/lib/tty.js @@ -23,6 +23,7 @@ const { Array, + NumberIsInteger, ObjectSetPrototypeOf, } = primordials; @@ -39,7 +40,7 @@ const { let readline; function isatty(fd) { - return Number.isInteger(fd) && fd >= 0 && isTTY(fd); + return NumberIsInteger(fd) && fd >= 0 && isTTY(fd); } function ReadStream(fd, options) { |