From 56e7a7cbfea275eafdf7b60fe9af077dcb2dc28b Mon Sep 17 00:00:00 2001 From: Mitar Date: Thu, 3 Jan 2019 14:58:37 -0800 Subject: [PATCH] doc: fix the path to postMessage() PR-URL: https://github.com/nodejs/node/pull/25332 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- doc/api/worker_threads.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 5cc74e1bc94..78f35412c32 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'