GeezerVison is showing github.com — tty: enable buffering · nodejs/node@a8a8638
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: lib/tty.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -57,7 +57,7 @@ function ReadStream(fd, options) { |
57 | 57 | } |
58 | 58 |
|
59 | 59 | net.Socket.call(this, { |
60 | | - highWaterMark: 0, |
| 60 | + readableHighWaterMark: 0, |
61 | 61 | handle: tty, |
62 | 62 | manualStart: true, |
63 | 63 | ...options |
@@ -94,7 +94,7 @@ function WriteStream(fd) { |
94 | 94 | } |
95 | 95 |
|
96 | 96 | net.Socket.call(this, { |
97 | | - highWaterMark: 0, |
| 97 | + readableHighWaterMark: 0, |
98 | 98 | handle: tty, |
99 | 99 | manualStart: true |
100 | 100 | }); |
|
Collapse file
Copy file name to clipboard +8Lines changed: 8 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 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); |