@@ -289,7 +289,7 @@ inherits from its global `Object` class. Objects passed to the
289289and inherit from its global ` Object ` class.
290290
291291However, the created ` MessagePort ` no longer inherits from
292- [ ` EventTarget ` ] [ ] , and only [ ` port.onmessage() ` ] [ ] can be used to receive
292+ { EventTarget} , and only [ ` port.onmessage() ` ] [ ] can be used to receive
293293events using it.
294294
295295## ` worker.parentPort `
@@ -849,14 +849,14 @@ circularData.foo = circularData;
849849port2 .postMessage (circularData);
850850` ` `
851851
852- ` transferList` may be a list of [ ` ArrayBuffer ` ][] , [` MessagePort ` ][], and
852+ ` transferList` may be a list of { ArrayBuffer} , [` MessagePort ` ][], and
853853[` FileHandle` ][] objects.
854854After transferring, they are not usable on the sending side of the channel
855855anymore (even if they are not contained in ` value` ). Unlike with
856856[child processes][], transferring handles such as network sockets is currently
857857not supported.
858858
859- If ` value` contains [ ` SharedArrayBuffer ` ][] instances, those are accessible
859+ If ` value` contains { SharedArrayBuffer} instances, those are accessible
860860from either thread. They cannot be listed in ` transferList` .
861861
862862` value` may still contain ` ArrayBuffer ` instances that are not in
@@ -894,8 +894,8 @@ behind this API, see the [serialization API of the `node:v8` module][v8.serdes].
894894
895895#### Considerations when transferring TypedArrays and Buffers
896896
897- All ` TypedArray` and ` Buffer` instances are views over an underlying
898- ` ArrayBuffer ` . That is, it is the ` ArrayBuffer ` that actually stores
897+ All { TypedArray| Buffer} instances are views over an underlying
898+ { ArrayBuffer} . That is, it is the ` ArrayBuffer ` that actually stores
899899the raw data while the ` TypedArray` and ` Buffer` objects provide a
900900way of viewing and manipulating the data. It is possible and common
901901for multiple views to be created over the same ` ArrayBuffer ` instance.
@@ -944,8 +944,8 @@ those `ArrayBuffer`s unusable.
944944
945945Because object cloning uses the [HTML structured clone algorithm][],
946946non-enumerable properties, property accessors, and object prototypes are
947- not preserved. In particular, [ ` Buffer` ][] objects will be read as
948- plain [ ` Uint8Array ` ][] s on the receiving side, and instances of JavaScript
947+ not preserved. In particular, { Buffer} objects will be read as
948+ plain { Uint8Array} s on the receiving side, and instances of JavaScript
949949classes will be cloned as plain JavaScript objects.
950950
951951<!-- eslint-disable no-unused-private-class-members -->
@@ -1585,21 +1585,16 @@ thread spawned will spawn another until the application crashes.
15851585[` 'online'` event ]: #event - online
15861586[` --max-old-space-size` ]: cli .md #-- max- old- space- sizesize- in - mib
15871587[` --max-semi-space-size` ]: cli .md #-- max- semi- space- sizesize- in - mib
1588- [` ArrayBuffer` ]: https: // developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
15891588[` AsyncResource` ]: async_hooks .md #class - asyncresource
15901589[` Buffer.allocUnsafe()` ]: buffer .md #static - method- bufferallocunsafesize
1591- [` Buffer` ]: buffer .md
15921590[` ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` ]: errors .md #err_missing_message_port_in_transfer_list
15931591[` ERR_WORKER_MESSAGING_ERRORED` ]: errors .md #err_worker_messaging_errored
15941592[` ERR_WORKER_MESSAGING_FAILED` ]: errors .md #err_worker_messaging_failed
15951593[` ERR_WORKER_MESSAGING_SAME_THREAD` ]: errors .md #err_worker_messaging_same_thread
15961594[` ERR_WORKER_MESSAGING_TIMEOUT` ]: errors .md #err_worker_messaging_timeout
15971595[` ERR_WORKER_NOT_RUNNING` ]: errors .md #err_worker_not_running
1598- [` EventTarget` ]: https: // developer.mozilla.org/en-US/docs/Web/API/EventTarget
15991596[` FileHandle` ]: fs .md #class - filehandle
16001597[` MessagePort` ]: #class - messageport
1601- [` SharedArrayBuffer` ]: https: // developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
1602- [` Uint8Array` ]: https: // developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
16031598[` WebAssembly.Module` ]: https: // developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module
16041599[` Worker constructor options` ]: #new - workerfilename- options
16051600[` Worker` ]: #class - worker
0 commit comments