summaryrefslogtreecommitdiff
path: root/doc/api/errors.md
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-06-02 19:42:22 +0200
committerRich Trott <rtrott@gmail.com>2019-06-12 20:56:44 -0700
commit0640526303bbe9c41801e2ad795f9cccb29f1fa4 (patch)
tree155a1027bf9b28de666f10b756a3c53257988414 /doc/api/errors.md
parent25399e4c9cea290e0bb061b0208cb4e9e5e17642 (diff)
downloadandroid-node-v8-0640526303bbe9c41801e2ad795f9cccb29f1fa4.tar.gz
android-node-v8-0640526303bbe9c41801e2ad795f9cccb29f1fa4.tar.bz2
android-node-v8-0640526303bbe9c41801e2ad795f9cccb29f1fa4.zip
worker: make MessagePort constructor non-callable
Refactor the C++ code for creating `MessagePort`s to skip calling the constructor and instead directly instantiating the `InstanceTemplate`, and always throw an error from the `MessagePort` constructor. This aligns behaviour with the web, and creating single `MessagePort`s does not make sense anyway. PR-URL: https://github.com/nodejs/node/pull/28032 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/errors.md')
-rw-r--r--doc/api/errors.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md
index 131773143c..994634c806 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -703,6 +703,14 @@ non-writable `stdout` or `stderr` stream.
A constructor for a class was called without `new`.
+<a id="ERR_CONSTRUCT_CALL_INVALID"></a>
+### ERR_CONSTRUCT_CALL_INVALID
+<!--
+added: REPLACEME
+-->
+
+A class constructor was called that is not callable.
+
<a id="ERR_CPU_USAGE"></a>
### ERR_CPU_USAGE