mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Revert "worker: remove ERR_CLOSED_MESSAGE_PORT"
This reverts commit 73370b4584.
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>
This commit is contained in:
1 parent
bed947b854
commit
b373a2c4ba
3 files changed
+13
-1
No files matched your search
@@ -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") \
|
||||
|
||||
Reference in new issue
Block a user