File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines 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
```
You can’t perform that action at this time.
0 commit comments