0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/pseudo-tty
Bryan English 27e12e7524 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>
2017-10-22 16:51:10 -07:00
..
no_dropped_stdio.js test: change isAix to isAIX 2017-07-16 02:24:47 -07:00
no_dropped_stdio.out
no_interleaved_stdio.js test: change isAix to isAIX 2017-07-16 02:24:47 -07:00
no_interleaved_stdio.out
pseudo-tty.status
ref_keeps_node_running.js test: remove common.noop 2017-07-03 11:39:35 -07:00
ref_keeps_node_running.out
stdin-setrawmode.js
stdin-setrawmode.out
test-handle-wrap-isrefed-tty.js test: adjust indentation for stricter linting 2017-07-27 09:24:20 -07:00
test-handle-wrap-isrefed-tty.out
test-stderr-stdout-handle-sigwinch.js test: change isAix to isAIX 2017-07-16 02:24:47 -07:00
test-stderr-stdout-handle-sigwinch.out
test-tty-isatty.js tty,doc: add type-check to isatty 2017-10-22 16:51:10 -07:00
test-tty-isatty.out tty,doc: add type-check to isatty 2017-10-22 16:51:10 -07:00
test-tty-stdout-end.js stream: add destroy and _destroy methods. 2017-05-22 08:34:14 +02:00
test-tty-stdout-end.out
test-tty-wrap.js
test-tty-wrap.out
testcfg.py