@@ -125,7 +125,7 @@ structured data, memory regions and other `MessagePort`s between different
125
125
[ ` Worker ` ] [ ] s.
126
126
127
127
With the exception of ` MessagePort ` s being [ ` EventEmitter ` ] [ ] s rather
128
- than ` EventTarget ` s, this implementation matches [ browser ` MessagePort ` ] [ ] s.
128
+ than [ ` EventTarget ` ] [ ] s, this implementation matches [ browser ` MessagePort ` ] [ ] s.
129
129
130
130
### Event: 'close'
131
131
<!-- YAML
@@ -308,10 +308,10 @@ if (isMainThread) {
308
308
* ` filename ` {string} The path to the Worker’s main script. Must be
309
309
either an absolute path or a relative path (i.e. relative to the
310
310
current working directory) starting with ` ./ ` or ` ../ ` .
311
- If ` options.eval ` is true, this is a string containing JavaScript code rather
312
- than a path.
311
+ If ` options.eval ` is ` true ` , this is a string containing JavaScript code
312
+ rather than a path.
313
313
* ` options ` {Object}
314
- * ` eval ` {boolean} If true, interpret the first argument to the constructor
314
+ * ` eval ` {boolean} If ` true ` , interpret the first argument to the constructor
315
315
as a script that is executed once the worker is online.
316
316
* ` workerData ` {any} Any JavaScript value that will be cloned and made
317
317
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
464
464
465
465
[ `Buffer` ] : buffer.html
466
466
[ `EventEmitter` ] : events.html
467
+ [ `EventTarget` ] : https://developer.mozilla.org/en-US/docs/Web/API/EventTarget
467
468
[ `MessagePort` ] : #worker_threads_class_messageport
468
469
[ `SharedArrayBuffer` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
469
470
[ `Uint8Array` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
0 commit comments