Skip to content
Permalink
Browse files

doc: fix reference to workerData in worker_threads

This was previously incorrect.

PR-URL: #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>
  • Loading branch information...
Fishrock123 committed Jun 6, 2018
1 parent b766af9 commit 31d5bdea70e44802918d6f4aa7c378bc1992be54
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 31d5bde

Please sign in to comment.
You can’t perform that action at this time.