Skip to content

Commit dbd810e

Browse files
watsontargos
authored andcommitted
doc: show options arg to new Worker is optional
PR-URL: #21508 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent 2359823 commit dbd810e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/worker_threads.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ if (isMainThread) {
304304
}
305305
```
306306

307-
### new Worker(filename, options)
307+
### new Worker(filename[, options])
308308

309309
* `filename` {string} The absolute path to the Worker’s main script.
310310
If `options.eval` is true, this is a string containing JavaScript code rather

0 commit comments

Comments
 (0)