Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2021-02-27 20:29:27 +0300
committerAnna Henningsen <anna@addaleax.net>2021-03-04 01:22:26 +0300
commit9dd2f9f19dd35a91eabd0aa5acff9011db59e238 (patch)
treec6df3139535eba791430a4ea46724325209a06c2 /doc/api/worker_threads.md
parent0c11f2ee060eff2e7faaff713eea496ed8e6e2c3 (diff)
worker: allow BroadcastChannel in receiveMessageOnPort
PR-URL: https://github.com/nodejs/node/pull/37535 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'doc/api/worker_threads.md')
-rw-r--r--doc/api/worker_threads.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md
index 3f184d5ffe2..7942788df58 100644
--- a/doc/api/worker_threads.md
+++ b/doc/api/worker_threads.md
@@ -179,9 +179,13 @@ if (isMainThread) {
## `worker.receiveMessageOnPort(port)`
<!-- YAML
added: v12.3.0
+changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/37535
+ description: The port argument can also refer to a `BroadcastChannel` now.
-->
-* `port` {MessagePort}
+* `port` {MessagePort|BroadcastChannel}
* Returns: {Object|undefined}