summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAzard <330815461@qq.com>2018-12-15 16:38:32 +0800
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-12-16 12:15:26 +0200
commit5f4fa0756b6961cf73a224f4307eaba13b9f9d40 (patch)
treec6c8dbe09f7f84ca4807ac0a764081bc4ad902e5 /doc
parent8f4b924f4a7b37bd16ddff65329c8e96fc5f0f2d (diff)
downloadandroid-node-v8-5f4fa0756b6961cf73a224f4307eaba13b9f9d40.tar.gz
android-node-v8-5f4fa0756b6961cf73a224f4307eaba13b9f9d40.tar.bz2
android-node-v8-5f4fa0756b6961cf73a224f4307eaba13b9f9d40.zip
doc: add EventTarget link to worker_threads
PR-URL: https://github.com/nodejs/node/pull/25058 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/worker_threads.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md
index ca3aed6140..d6c396d3ac 100644
--- a/doc/api/worker_threads.md
+++ b/doc/api/worker_threads.md
@@ -125,7 +125,7 @@ structured data, memory regions and other `MessagePort`s between different
[`Worker`][]s.
With the exception of `MessagePort`s being [`EventEmitter`][]s rather
-than `EventTarget`s, this implementation matches [browser `MessagePort`][]s.
+than [`EventTarget`][]s, this implementation matches [browser `MessagePort`][]s.
### Event: 'close'
<!-- YAML
@@ -308,10 +308,10 @@ if (isMainThread) {
* `filename` {string} The path to the Worker’s main script. Must be
either an absolute path or a relative path (i.e. relative to the
current working directory) starting with `./` or `../`.
- If `options.eval` is true, this is a string containing JavaScript code rather
- than a path.
+ If `options.eval` is `true`, this is a string containing JavaScript code
+ rather than a path.
* `options` {Object}
- * `eval` {boolean} If true, interpret the first argument to the constructor
+ * `eval` {boolean} If `true`, interpret the first argument to the constructor
as a script that is executed once the worker is online.
* `workerData` {any} Any JavaScript value that will be cloned and made
available as [`require('worker_threads').workerData`][]. The cloning will
@@ -464,6 +464,7 @@ active handle in the event system. If the worker is already `unref()`ed calling
[`Buffer`]: buffer.html
[`EventEmitter`]: events.html
+[`EventTarget`]: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget
[`MessagePort`]: #worker_threads_class_messageport
[`SharedArrayBuffer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
[`Uint8Array`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array