| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fb9b66b commit b644ab6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -109,9 +109,10 @@ markAsUntransferable(pooledBuffer); | |||
| 109 | 109 | const { port1 } = new MessageChannel(); | |
| 110 | 110 | port1.postMessage(typedArray1, [ typedArray1.buffer ]); | |
| 111 | 111 | ||
| 112 | - // The following line prints the contents of typedArray1 -- it still owns its | ||
| 113 | - // memory and has been cloned, not transferred. Without `markAsUntransferable()`, | ||
| 114 | - // this would print an empty Uint8Array. typedArray2 is intact as well. | ||
| 112 | + // The following line prints the contents of typedArray1 -- it still owns | ||
| 113 | + // its memory and has been cloned, not transferred. Without | ||
| 114 | + // `markAsUntransferable()`, this would print an empty Uint8Array. | ||
| 115 | + // typedArray2 is intact as well. | ||
| 115 | 116 | console.log(typedArray1); | |
| 116 | 117 | console.log(typedArray2); | |
| 117 | 118 | ``` | |
| Back | FazBrowse Home | New Git URL |
0 commit comments