From 94afe921245b1feabc399784a2b37f610911023f Mon Sep 17 00:00:00 2001 From: Mitar Date: Thu, 3 Jan 2019 14:58:37 -0800 Subject: [PATCH] doc: fixing the path to postMessage --- 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 d6c396d3ac69dd..4506e974984c1e 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -356,8 +356,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'