summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRobert Nagy <ronagy@icloud.com>2019-07-14 22:11:06 +0200
committerRich Trott <rtrott@gmail.com>2019-08-20 08:47:19 -0700
commitdb706da235d80e5dadaab64328bfad9cb313be39 (patch)
tree58182b1324b6fe3e370bca7a377f99cff73903bf /doc
parent85898e0aca26cee2e68aea9ba384e23cd4457849 (diff)
downloadandroid-node-v8-db706da235d80e5dadaab64328bfad9cb313be39.tar.gz
android-node-v8-db706da235d80e5dadaab64328bfad9cb313be39.tar.bz2
android-node-v8-db706da235d80e5dadaab64328bfad9cb313be39.zip
stream: disallow stream methods on finished stream
Invoke callback with ERR_STREAM_ALREADY_FINISHED error if `end()` is called on a finished stream. PR-URL: https://github.com/nodejs/node/pull/28687 Refs: https://github.com/nodejs/node/issues/28667 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/errors.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md
index e809b26f6d..a812d74c8f 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -1703,6 +1703,12 @@ An attempt was made to call [`stream.pipe()`][] on a [`Writable`][] stream.
A stream method was called that cannot complete because the stream was
destroyed using `stream.destroy()`.
+<a id="ERR_STREAM_ALREADY_FINISHED"></a>
+### ERR_STREAM_ALREADY_FINISHED
+
+A stream method was called that cannot complete because the stream was
+finished.
+
<a id="ERR_STREAM_NULL_VALUES"></a>
### ERR_STREAM_NULL_VALUES