From dd2fc90dcfe85fe50f84742d888d223d493a91e6 Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Wed, 6 Jun 2018 17:42:02 -0400 Subject: [PATCH] doc: fix reference to workerData in worker_threads This was previously incorrect. PR-URL: https://github.com/nodejs/node/pull/21180 Reviewed-By: Anna Henningsen Reviewed-By: Minwoo Jung Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell --- doc/api/worker_threads.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 2a6384be2cafbb..b64c997d877c87 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -312,7 +312,7 @@ if (isMainThread) { * `options` {Object} * `eval` {boolean} If true, interpret the first argument to the constructor as a script that is executed once the worker is online. - * `data` {any} Any JavaScript value that will be cloned and made + * `workerData` {any} Any JavaScript value that will be cloned and made available as [`require('worker_threads').workerData`][]. The cloning will occur as described in the [HTML structured clone algorithm][], and an error will be thrown if the object cannot be cloned (e.g. because it contains