diff options
author | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2018-06-06 17:42:02 -0400 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2018-06-11 20:01:25 -0400 |
commit | 31d5bdea70e44802918d6f4aa7c378bc1992be54 (patch) | |
tree | a292e119f2ffc611f51052af3812aaa6f3cab015 /doc/api/worker_threads.md | |
parent | b766af9ab97141bd2aa16a8b74e36c9526494a3d (diff) | |
download | android-node-v8-31d5bdea70e44802918d6f4aa7c378bc1992be54.tar.gz android-node-v8-31d5bdea70e44802918d6f4aa7c378bc1992be54.tar.bz2 android-node-v8-31d5bdea70e44802918d6f4aa7c378bc1992be54.zip |
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 <anna@addaleax.net>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/worker_threads.md')
-rw-r--r-- | doc/api/worker_threads.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 2a6384be2c..b64c997d87 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 |