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 — tty: enable buffering · nodejs/node@a8a8638

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • tty.js
  • test/parallel
    • test-stdout-stderr-write.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/tty.js‎

Copy file name to clipboardExpand all lines: lib/tty.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function ReadStream(fd, options) {
5757
}
5858

5959
net.Socket.call(this, {
60-
highWaterMark: 0,
60+
readableHighWaterMark: 0,
6161
handle: tty,
6262
manualStart: true,
6363
...options
@@ -94,7 +94,7 @@ function WriteStream(fd) {
9494
}
9595

9696
net.Socket.call(this, {
97-
highWaterMark: 0,
97+
readableHighWaterMark: 0,
9898
handle: tty,
9999
manualStart: true
100100
});
Collapse file

‎test/parallel/test-stdout-stderr-write.js‎

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
require('../common');
4+
const assert = require('assert');
5+
6+
// https://github.com/nodejs/node/pull/39246
7+
assert.strictEqual(process.stderr.write('asd'), true);
8+
assert.strictEqual(process.stdout.write('asd'), true);

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.