doc: show options arg to new Worker is optional

PR-URL: https://github.com/nodejs/node/pull/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>
pull/21508/merge
Thomas Watson 2018-06-24 18:55:50 +02:00
parent 8ab7ea6eed
commit e22d70924b
No known key found for this signature in database
GPG Key ID: 34E24C749C9D4A61
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ if (isMainThread) {
}
```
### new Worker(filename, options)
### new Worker(filename[, options])
* `filename` {string} The absolute path to the Workers main script.
If `options.eval` is true, this is a string containing JavaScript code rather