File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,13 @@ assert.throws(
21
21
22
22
{
23
23
const info = {
24
- code : common . isWindows || common . isIBMi ? 'EBADF' : 'EINVAL' ,
25
- message : common . isWindows ||
26
- common . isIBMi ? 'bad file descriptor' : 'invalid argument' ,
27
- errno : common . isWindows || common . isIBMi ? UV_EBADF : UV_EINVAL ,
24
+ code : common . isWindows ? 'EBADF' : 'EINVAL' ,
25
+ message : common . isWindows ? 'bad file descriptor' : 'invalid argument' ,
26
+ errno : common . isWindows ? UV_EBADF : UV_EINVAL ,
28
27
syscall : 'uv_tty_init'
29
28
} ;
30
29
31
- const suffix = common . isWindows || common . isIBMi ?
30
+ const suffix = common . isWindows ?
32
31
'EBADF (bad file descriptor)' : 'EINVAL (invalid argument)' ;
33
32
const message = `TTY initialization failed: uv_tty_init returned ${ suffix } ` ;
34
33
You can’t perform that action at this time.
0 commit comments