diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index ad29a54a3ed259..ab016f66732ac5 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -109,9 +109,10 @@ markAsUntransferable(pooledBuffer); const { port1 } = new MessageChannel(); port1.postMessage(typedArray1, [ typedArray1.buffer ]); -// The following line prints the contents of typedArray1 -- it still owns its -// memory and has been cloned, not transferred. Without `markAsUntransferable()`, -// this would print an empty Uint8Array. typedArray2 is intact as well. +// The following line prints the contents of typedArray1 -- it still owns +// its memory and has been cloned, not transferred. Without +// `markAsUntransferable()`, this would print an empty Uint8Array. +// typedArray2 is intact as well. console.log(typedArray1); console.log(typedArray2); ```