GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: uv_tty_init returns EBADF on IBM i · nodejs/node@85ae566

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-ttywrap-invalid-fd.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-ttywrap-invalid-fd.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-ttywrap-invalid-fd.js
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ assert.throws(
2121

2222
{
2323
const info = {
24-
code: common.isWindows ? 'EBADF' : 'EINVAL',
25-
message: common.isWindows ? 'bad file descriptor' : 'invalid argument',
26-
errno: common.isWindows ? UV_EBADF : UV_EINVAL,
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,
2728
syscall: 'uv_tty_init'
2829
};
2930

30-
const suffix = common.isWindows ?
31+
const suffix = common.isWindows || common.isIBMi ?
3132
'EBADF (bad file descriptor)' : 'EINVAL (invalid argument)';
3233
const message = `TTY initialization failed: uv_tty_init returned ${suffix}`;
3334

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.