summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMitar <mitar.git@tnode.com>2019-01-03 14:58:37 -0800
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2019-01-11 21:40:31 +0200
commit56e7a7cbfea275eafdf7b60fe9af077dcb2dc28b (patch)
treee3da5f4048183799f2468d6e63db84630c282e92 /doc
parentc380ea1319d9a389da1cab92977d69a9d2fe2e33 (diff)
downloadandroid-node-v8-56e7a7cbfea275eafdf7b60fe9af077dcb2dc28b.tar.gz
android-node-v8-56e7a7cbfea275eafdf7b60fe9af077dcb2dc28b.tar.bz2
android-node-v8-56e7a7cbfea275eafdf7b60fe9af077dcb2dc28b.zip
doc: fix the path to postMessage()
PR-URL: https://github.com/nodejs/node/pull/25332 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/worker_threads.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md
index 5cc74e1bc9..78f35412c3 100644
--- a/doc/api/worker_threads.md
+++ b/doc/api/worker_threads.md
@@ -354,8 +354,8 @@ added: v10.5.0
* `value` {any} The transmitted value
The `'message'` event is emitted when the worker thread has invoked
-[`require('worker_threads').postMessage()`][]. See the [`port.on('message')`][]
-event for more details.
+[`require('worker_threads').parentPort.postMessage()`][].
+See the [`port.on('message')`][] event for more details.
### Event: 'online'
<!-- YAML
@@ -482,7 +482,7 @@ active handle in the event system. If the worker is already `unref()`ed calling
[`require('worker_threads').isMainThread`]: #worker_threads_worker_ismainthread
[`require('worker_threads').parentPort.on('message')`]: #worker_threads_event_message
[`require('worker_threads').parentPort`]: #worker_threads_worker_parentport
-[`require('worker_threads').postMessage()`]: #worker_threads_worker_postmessage_value_transferlist
+[`require('worker_threads').parentPort.postMessage()`]: #worker_threads_worker_postmessage_value_transferlist
[`require('worker_threads').threadId`]: #worker_threads_worker_threadid
[`require('worker_threads').workerData`]: #worker_threads_worker_workerdata
[`trace_events`]: tracing.html