Skip to content

Commit 090d879

Browse files
addaleaxtargos
authored andcommitted
Revert "tty: make _read throw ERR_TTY_WRITABLE_NOT_READABLE"
This reverts commit 91eec00. Refs: #21654 Refs: #21203 PR-URL: #23053 Reviewed-By: James M Snell <[email protected]>
1 parent a656268 commit 090d879

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/api/errors.md

+7
Original file line numberDiff line numberDiff line change
@@ -2059,6 +2059,13 @@ instance.setEncoding('utf8');
20592059
An attempt has been made to create a string larger than the maximum allowed
20602060
size.
20612061

2062+
<a id="ERR_TTY_WRITABLE_NOT_READABLE"></a>
2063+
#### ERR_TTY_WRITABLE_NOT_READABLE
2064+
2065+
This `Error` is thrown when a read is attempted on a TTY `WriteStream`,
2066+
such as `process.stdout.on('data')`.
2067+
2068+
20622069
[`--force-fips`]: cli.html#cli_force_fips
20632070
[`'uncaughtException'`]: process.html#process_event_uncaughtexception
20642071
[`child_process`]: child_process.html

0 commit comments

Comments
 (0)