diff options
author | Anna Henningsen <anna@addaleax.net> | 2021-02-27 20:29:27 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2021-03-04 01:22:26 +0300 |
commit | 9dd2f9f19dd35a91eabd0aa5acff9011db59e238 (patch) | |
tree | c6df3139535eba791430a4ea46724325209a06c2 /doc/api/worker_threads.md | |
parent | 0c11f2ee060eff2e7faaff713eea496ed8e6e2c3 (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.md | 6 |
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} |