summaryrefslogtreecommitdiff
path: root/lib/tty.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tty.js')
-rw-r--r--lib/tty.js3
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) {