summaryrefslogtreecommitdiff
path: root/src/node_errors.h
diff options
context:
space:
mode:
authorJuan José Arboleda <soyjuanarbol@gmail.com>2021-05-03 13:12:39 -0500
committerJames M Snell <jasnell@gmail.com>2021-05-06 10:31:54 -0700
commitb373a2c4babc213b79b66f6ba36e8a951cae5ba8 (patch)
treed9218b2e8bc47d5eccc070fa7ee29f039f991853 /src/node_errors.h
parentbed947b85445c809b253938323536960323a2cb6 (diff)
downloadnode-new-b373a2c4babc213b79b66f6ba36e8a951cae5ba8.tar.gz
Revert "worker: remove `ERR_CLOSED_MESSAGE_PORT`"
This reverts commit 73370b45844fd64e9ca8f9270220e425f9ef8ab6. The unit test is preserved to make sure it does not break https://github.com/nodejs/node/issues/26463 again. PR-URL: https://github.com/nodejs/node/pull/38510 Fixes: https://github.com/nodejs/node/issues/38499 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_errors.h')
-rw-r--r--src/node_errors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_errors.h b/src/node_errors.h
index 291365fa3b..96659f3a40 100644
--- a/src/node_errors.h
+++ b/src/node_errors.h
@@ -32,6 +32,7 @@ void OnFatalError(const char* location, const char* message);
V(ERR_BUFFER_CONTEXT_NOT_AVAILABLE, Error) \
V(ERR_BUFFER_OUT_OF_BOUNDS, RangeError) \
V(ERR_BUFFER_TOO_LARGE, Error) \
+ V(ERR_CLOSED_MESSAGE_PORT, Error) \
V(ERR_CONSTRUCT_CALL_REQUIRED, TypeError) \
V(ERR_CONSTRUCT_CALL_INVALID, TypeError) \
V(ERR_CRYPTO_INITIALIZATION_FAILED, Error) \
@@ -118,6 +119,7 @@ ERRORS_WITH_CODE(V)
#define PREDEFINED_ERROR_MESSAGES(V) \
V(ERR_BUFFER_CONTEXT_NOT_AVAILABLE, \
"Buffer is not available for the current Context") \
+ V(ERR_CLOSED_MESSAGE_PORT, "Cannot send data on closed MessagePort") \
V(ERR_CONSTRUCT_CALL_INVALID, "Constructor cannot be called") \
V(ERR_CONSTRUCT_CALL_REQUIRED, "Cannot call constructor without `new`") \
V(ERR_CRYPTO_INITIALIZATION_FAILED, "Initialization failed") \