@@ -1512,7 +1512,7 @@ a `Buffer` is that in this case one needs to specify the `byteOffset` correctly:
15121512import { Buffer } from ' buffer' ;
15131513
15141514// Create a buffer smaller than `Buffer.poolSize`.
1515- const nodeBuffer = new Buffer.from ([0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ]);
1515+ const nodeBuffer = Buffer .from ([0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ]);
15161516
15171517// When casting the Node.js Buffer to an Int8Array, use the byteOffset
15181518// to refer only to the part of `nodeBuffer.buffer` that contains the memory
@@ -1524,7 +1524,7 @@ new Int8Array(nodeBuffer.buffer, nodeBuffer.byteOffset, nodeBuffer.length);
15241524const { Buffer } = require (' buffer' );
15251525
15261526// Create a buffer smaller than `Buffer.poolSize`.
1527- const nodeBuffer = new Buffer.from ([0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ]);
1527+ const nodeBuffer = Buffer .from ([0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ]);
15281528
15291529// When casting the Node.js Buffer to an Int8Array, use the byteOffset
15301530// to refer only to the part of `nodeBuffer.buffer` that contains the memory
0 commit comments