Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dd2fc90

Browse filesBrowse files
Fishrock123targos
authored andcommitted
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>
1 parent 792335f commit dd2fc90
Copy full SHA for dd2fc90

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/worker_threads.md‎

Copy file name to clipboardExpand all lines: doc/api/worker_threads.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.