summaryrefslogtreecommitdiff
path: root/test/pseudo-tty/test-tty-isatty.out
diff options
context:
space:
mode:
authorBryan English <bryan@bryanenglish.com>2017-09-23 01:40:35 -0700
committerBryan English <bryan@bryanenglish.com>2017-10-22 16:51:10 -0700
commit27e12e75244343ffcde4b899a31e88d452fa4d6e (patch)
treeb6319edc862c0fbf506bb04030fb4748750b2b9e /test/pseudo-tty/test-tty-isatty.out
parentb5569dbe8dee7f259644ef6b73b756d9ea2ba090 (diff)
downloadandroid-node-v8-27e12e75244343ffcde4b899a31e88d452fa4d6e.tar.gz
android-node-v8-27e12e75244343ffcde4b899a31e88d452fa4d6e.tar.bz2
android-node-v8-27e12e75244343ffcde4b899a31e88d452fa4d6e.zip
tty,doc: add type-check to isatty
Previously, various inputs other than non-negative integers would produce incorrect results. Added type-checking on input, returning false for anything other than non-negative integers. Also clarified in docs. PR-URL: https://github.com/nodejs/node/pull/15567 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'test/pseudo-tty/test-tty-isatty.out')
-rw-r--r--test/pseudo-tty/test-tty-isatty.out0
1 files changed, 0 insertions, 0 deletions
diff --git a/test/pseudo-tty/test-tty-isatty.out b/test/pseudo-tty/test-tty-isatty.out
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/test/pseudo-tty/test-tty-isatty.out