Skip to content
Browse files

doc: fix reference to workerData in worker_threads

This was previously incorrect.

PR-URL: #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 <>
  • 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/
@@ -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.