Skip to content

Commit

Permalink
doc: show options arg to new Worker is optional
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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>
  • Loading branch information
watson committed Jun 24, 2018
1 parent 8ab7ea6 commit e22d709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ if (isMainThread) {
}
```

### new Worker(filename, options)
### new Worker(filename[, options])

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

0 comments on commit e22d709

Please sign in to comment.