Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: show options arg to new Worker is optional
  • Loading branch information
watson committed Jun 24, 2018
commit 88cbb625f4f466a41898589af00e877397c32dec
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