diff options
author | Juan José Arboleda <soyjuanarbol@gmail.com> | 2021-05-03 13:12:39 -0500 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-05-06 10:31:54 -0700 |
commit | b373a2c4babc213b79b66f6ba36e8a951cae5ba8 (patch) | |
tree | d9218b2e8bc47d5eccc070fa7ee29f039f991853 /src/node_errors.h | |
parent | bed947b85445c809b253938323536960323a2cb6 (diff) | |
download | node-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.h | 2 |
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") \ |