Skip to content

Commit dd2fc90

Browse files
Fishrock123targos
authored andcommitted
doc: fix reference to workerData in worker_threads
This was previously incorrect. PR-URL: #21180 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 792335f commit dd2fc90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/worker_threads.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ if (isMainThread) {
312312
* `options` {Object}
313313
* `eval` {boolean} If true, interpret the first argument to the constructor
314314
as a script that is executed once the worker is online.
315-
* `data` {any} Any JavaScript value that will be cloned and made
315+
* `workerData` {any} Any JavaScript value that will be cloned and made
316316
available as [`require('worker_threads').workerData`][]. The cloning will
317317
occur as described in the [HTML structured clone algorithm][], and an error
318318
will be thrown if the object cannot be cloned (e.g. because it contains

0 commit comments

Comments
 (0)