Skip to content

Commit d5273ac

Browse files
committed
fix: test fail
1 parent 76abe3b commit d5273ac

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
@@ -901,7 +901,7 @@ const handleTypes = ['TCP', 'TTY', 'UDP', 'FILE', 'PIPE', 'UNKNOWN'];
901901
setOwnProperty(handleTypes, -1, null);
902902

903903
function guessHandleType(fd) {
904-
if (fd >> 0 !== fd || fd < 0) {
904+
if (typeof fd !== 'number' || fd >> 0 !== fd || fd < 0) {
905905
throw new ERR_INVALID_FD(fd);
906906
}
907907

0 commit comments

Comments
 (0)