We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb8d6f5 commit 0982bf4Copy full SHA for 0982bf4
test/parallel/test-ttywrap-invalid-fd.js
@@ -21,14 +21,13 @@ assert.throws(
21
22
{
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,
+ code: common.isWindows ? 'EBADF' : 'EINVAL',
+ message: common.isWindows ? 'bad file descriptor' : 'invalid argument',
+ errno: common.isWindows ? UV_EBADF : UV_EINVAL,
28
syscall: 'uv_tty_init'
29
};
30
31
- const suffix = common.isWindows || common.isIBMi ?
+ const suffix = common.isWindows ?
32
'EBADF (bad file descriptor)' : 'EINVAL (invalid argument)';
33
const message = `TTY initialization failed: uv_tty_init returned ${suffix}`;
34
0 commit comments