From fcca2f7e49061c978354a4bb966126334f841f1f Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 10 Aug 2018 11:16:45 -0700 Subject: [PATCH] http2: remove `streamError` from docs `streamError` was removed quite some time ago but the docs and code comments weren't updated. Fix that. Fixes: https://github.com/nodejs/node/issues/20211 PR-URL: https://github.com/nodejs/node/pull/22246 Reviewed-By: Luigi Pinca Reviewed-By: Jon Moss Reviewed-By: Colin Ihrig Reviewed-By: Matteo Collina Reviewed-By: Vse Mozhet Byt Reviewed-By: Trivikram Kamat --- doc/api/http2.md | 12 ------------ lib/internal/http2/compat.js | 4 +--- .../test-http2-compat-serverresponse-destroy.js | 3 +-- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/doc/api/http2.md b/doc/api/http2.md index 354877dba08781..d99052003a0c65 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1510,10 +1510,6 @@ added: v8.4.0 * Extends: {net.Server} -In `Http2Server`, there are no `'clientError'` events as there are in -HTTP1. However, there are `'sessionError'`, and `'streamError'` events for -errors emitted on the socket, or from `Http2Session` or `Http2Stream` instances. - #### Event: 'checkContinue' - -If a `ServerHttp2Stream` emits an `'error'` event, it will be forwarded here. -The stream will already be destroyed when this event is triggered. - #### Event: 'stream'