@@ -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
@@ -307,10 +307,10 @@ if (isMainThread) {
307
307
* ` filename ` {string} The path to the Worker’s main script. Must be
308
308
either an absolute path or a relative path (i.e. relative to the
309
309
current working directory) starting with ` ./ ` or ` ../ ` .
310
- If ` options.eval ` is true, this is a string containing JavaScript code rather
311
- than a path.
310
+ If ` options.eval ` is ` true ` , this is a string containing JavaScript code
311
+ rather than a path.
312
312
* ` options ` {Object}
313
- * ` eval ` {boolean} If true, interpret the first argument to the constructor
313
+ * ` eval ` {boolean} If ` true ` , interpret the first argument to the constructor
314
314
as a script that is executed once the worker is online.
315
315
* ` workerData ` {any} Any JavaScript value that will be cloned and made
316
316
available as [ ` require('worker_threads').workerData ` ] [ ] . The cloning will
@@ -463,6 +463,7 @@ active handle in the event system. If the worker is already `unref()`ed calling
463
463
464
464
[ `Buffer` ] : buffer.html
465
465
[ `EventEmitter` ] : events.html
466
+ [ `EventTarget` ] : https://developer.mozilla.org/en-US/docs/Web/API/EventTarget
466
467
[ `MessagePort` ] : #worker_threads_class_messageport
467
468
[ `SharedArrayBuffer` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
468
469
[ `Uint8Array` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
0 commit comments