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: #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 authored and targos committed Jun 25, 2018
1 parent 2359823 commit dbd810e
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 dbd810e

Please sign in to comment.