From 88cbb625f4f466a41898589af00e877397c32dec 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 --- 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 25a957d9f7f0f0..27a77ba6d441de 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