Skip to content

Commit e986407

Browse files
committed
fix: test fail
1 parent 3b85e0b commit e986407

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ const handleTypes = ['TCP', 'TTY', 'UDP', 'FILE', 'PIPE', 'UNKNOWN'];
880880
setOwnProperty(handleTypes, -1, null);
881881

882882
function guessHandleType(fd) {
883-
if (fd >> 0 !== fd || fd < 0) {
883+
if (typeof fd !== 'number' || fd >> 0 !== fd || fd < 0) {
884884
throw new ERR_INVALID_FD(fd);
885885
}
886886

0 commit comments

Comments
 (0)