From e22d70924bc2e2076c51a175b0c3bc23bad4d51d Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sun, 24 Jun 2018 18:55:50 +0200 Subject: [PATCH] doc: show options arg to new Worker is optional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/21508 Reviewed-By: Michaël Zasso Reviewed-By: Vse Mozhet Byt Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: Benjamin Gruenbaum --- doc/api/worker_threads.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 25a957d9f7f..27a77ba6d44 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -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