@@ -287,7 +287,7 @@ inherits from its global `Object` class. Objects passed to the
287
287
and inherit from its global ` Object ` class.
288
288
289
289
However, the created ` MessagePort ` no longer inherits from
290
- [ ` EventTarget ` ] [ ] , and only [ ` port.onmessage() ` ] [ ] can be used to receive
290
+ { EventTarget} , and only [ ` port.onmessage() ` ] [ ] can be used to receive
291
291
events using it.
292
292
293
293
## ` worker.parentPort `
@@ -847,14 +847,14 @@ circularData.foo = circularData;
847
847
port2 .postMessage (circularData);
848
848
` ` `
849
849
850
- ` transferList` may be a list of [ ` ArrayBuffer ` ][] , [` MessagePort ` ][], and
850
+ ` transferList` may be a list of { ArrayBuffer} , [` MessagePort ` ][], and
851
851
[` FileHandle` ][] objects.
852
852
After transferring, they are not usable on the sending side of the channel
853
853
anymore (even if they are not contained in ` value` ). Unlike with
854
854
[child processes][], transferring handles such as network sockets is currently
855
855
not supported.
856
856
857
- If ` value` contains [ ` SharedArrayBuffer ` ][] instances, those are accessible
857
+ If ` value` contains { SharedArrayBuffer} instances, those are accessible
858
858
from either thread. They cannot be listed in ` transferList` .
859
859
860
860
` value` may still contain ` ArrayBuffer ` instances that are not in
@@ -892,8 +892,8 @@ behind this API, see the [serialization API of the `node:v8` module][v8.serdes].
892
892
893
893
#### Considerations when transferring TypedArrays and Buffers
894
894
895
- All ` TypedArray` and ` Buffer` instances are views over an underlying
896
- ` ArrayBuffer ` . That is, it is the ` ArrayBuffer ` that actually stores
895
+ All { TypedArray| Buffer} instances are views over an underlying
896
+ { ArrayBuffer} . That is, it is the ` ArrayBuffer ` that actually stores
897
897
the raw data while the ` TypedArray` and ` Buffer` objects provide a
898
898
way of viewing and manipulating the data. It is possible and common
899
899
for multiple views to be created over the same ` ArrayBuffer ` instance.
@@ -942,8 +942,8 @@ those `ArrayBuffer`s unusable.
942
942
943
943
Because object cloning uses the [HTML structured clone algorithm][],
944
944
non-enumerable properties, property accessors, and object prototypes are
945
- not preserved. In particular, [ ` Buffer` ][] objects will be read as
946
- plain [ ` Uint8Array ` ][] s on the receiving side, and instances of JavaScript
945
+ not preserved. In particular, { Buffer} objects will be read as
946
+ plain { Uint8Array} s on the receiving side, and instances of JavaScript
947
947
classes will be cloned as plain JavaScript objects.
948
948
949
949
<!-- eslint-disable no-unused-private-class-members -->
@@ -1583,21 +1583,16 @@ thread spawned will spawn another until the application crashes.
1583
1583
[` 'online'` event ]: #event - online
1584
1584
[` --max-old-space-size` ]: cli .md #-- max- old- space- sizesize- in - mib
1585
1585
[` --max-semi-space-size` ]: cli .md #-- max- semi- space- sizesize- in - mib
1586
- [` ArrayBuffer` ]: https: // developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
1587
1586
[` AsyncResource` ]: async_hooks .md #class - asyncresource
1588
1587
[` Buffer.allocUnsafe()` ]: buffer .md #static - method- bufferallocunsafesize
1589
- [` Buffer` ]: buffer .md
1590
1588
[` ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` ]: errors .md #err_missing_message_port_in_transfer_list
1591
1589
[` ERR_WORKER_MESSAGING_ERRORED` ]: errors .md #err_worker_messaging_errored
1592
1590
[` ERR_WORKER_MESSAGING_FAILED` ]: errors .md #err_worker_messaging_failed
1593
1591
[` ERR_WORKER_MESSAGING_SAME_THREAD` ]: errors .md #err_worker_messaging_same_thread
1594
1592
[` ERR_WORKER_MESSAGING_TIMEOUT` ]: errors .md #err_worker_messaging_timeout
1595
1593
[` ERR_WORKER_NOT_RUNNING` ]: errors .md #err_worker_not_running
1596
- [` EventTarget` ]: https: // developer.mozilla.org/en-US/docs/Web/API/EventTarget
1597
1594
[` FileHandle` ]: fs .md #class - filehandle
1598
1595
[` MessagePort` ]: #class - messageport
1599
- [` SharedArrayBuffer` ]: https: // developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
1600
- [` Uint8Array` ]: https: // developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
1601
1596
[` WebAssembly.Module` ]: https: // developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module
1602
1597
[` Worker constructor options` ]: #new - workerfilename- options
1603
1598
[` Worker` ]: #class - worker
0 commit comments