From 090d879d6508899e34807ea7136dd1c4cb020f3d Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Mon, 24 Sep 2018 11:15:37 +0200 Subject: [PATCH] Revert "tty: make _read throw ERR_TTY_WRITABLE_NOT_READABLE" This reverts commit 91eec00ca20a54b1dc010cfc2fb34bc2f39eab6b. Refs: https://github.com/nodejs/node/pull/21654 Refs: https://github.com/nodejs/node/issues/21203 PR-URL: https://github.com/nodejs/node/pull/23053 Reviewed-By: James M Snell --- doc/api/errors.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/api/errors.md b/doc/api/errors.md index dcb2c77a7bf353..d9cbcfcad08725 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -2059,6 +2059,13 @@ instance.setEncoding('utf8'); An attempt has been made to create a string larger than the maximum allowed size. + +#### ERR_TTY_WRITABLE_NOT_READABLE + +This `Error` is thrown when a read is attempted on a TTY `WriteStream`, +such as `process.stdout.on('data')`. + + [`--force-fips`]: cli.html#cli_force_fips [`'uncaughtException'`]: process.html#process_event_uncaughtexception [`child_process`]: child_process.html