From 8e14859459c14b36383c6666c4ce8c1ef5c1041b Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Wed, 27 Mar 2019 18:26:34 -0700 Subject: [PATCH] tls: revert change to invalid protocol error type In https://github.com/nodejs/node/pull/24729, the error was changed to be a TypeError, which is the standard type for this kind of error. However, it was Error in 11.x and earlier, so revert that single aspect, so the backport can be semver-minor. PR-URL: https://github.com/nodejs/node/pull/26951 Reviewed-By: Rod Vagg Reviewed-By: Beth Griggs --- src/node_errors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_errors.h b/src/node_errors.h index 835794b17820cc..60abddf9f279a2 100644 --- a/src/node_errors.h +++ b/src/node_errors.h @@ -55,7 +55,7 @@ void FatalException(v8::Isolate* isolate, V(ERR_SCRIPT_EXECUTION_INTERRUPTED, Error) \ V(ERR_SCRIPT_EXECUTION_TIMEOUT, Error) \ V(ERR_STRING_TOO_LONG, Error) \ - V(ERR_TLS_INVALID_PROTOCOL_METHOD, TypeError) \ + V(ERR_TLS_INVALID_PROTOCOL_METHOD, Error) \ V(ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER, TypeError) \ #define V(code, type) \