Skip to content

Commit 8e14859

Browse files
sam-githubBethGriggs
authored andcommitted
tls: revert change to invalid protocol error type
In #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: #26951 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
1 parent 00688b6 commit 8e14859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_errors.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void FatalException(v8::Isolate* isolate,
5555
V(ERR_SCRIPT_EXECUTION_INTERRUPTED, Error) \
5656
V(ERR_SCRIPT_EXECUTION_TIMEOUT, Error) \
5757
V(ERR_STRING_TOO_LONG, Error) \
58-
V(ERR_TLS_INVALID_PROTOCOL_METHOD, TypeError) \
58+
V(ERR_TLS_INVALID_PROTOCOL_METHOD, Error) \
5959
V(ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER, TypeError) \
6060

6161
#define V(code, type) \

0 commit comments

Comments
 (0)