summaryrefslogtreecommitdiff
path: root/src/node_errors.h
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2018-11-20 15:30:34 -0800
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-12-03 07:38:59 +0100
commitb05b330025b9d69baa82812774be92b1be4a318c (patch)
treece4ef87bdfe790c6af54f81d545865bd4265b3e0 /src/node_errors.h
parent3513b0c3d9711e5eee47ef15b7913f0ce4483663 (diff)
downloadandroid-node-v8-b05b330025b9d69baa82812774be92b1be4a318c.tar.gz
android-node-v8-b05b330025b9d69baa82812774be92b1be4a318c.tar.bz2
android-node-v8-b05b330025b9d69baa82812774be92b1be4a318c.zip
tls: add code for ERR_TLS_INVALID_PROTOCOL_METHOD
Add an error code property to invalid `secureProtocol` method exceptions. PR-URL: https://github.com/nodejs/node/pull/24729 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_errors.h')
-rw-r--r--src/node_errors.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_errors.h b/src/node_errors.h
index 2c52007c51..44dc1d8094 100644
--- a/src/node_errors.h
+++ b/src/node_errors.h
@@ -71,6 +71,7 @@ void FatalException(const v8::FunctionCallbackInfo<v8::Value>& args);
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_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER, TypeError) \
#define V(code, type) \