Index: lib/typedObjects/arrayTypes.js |
=================================================================== |
--- a/lib/typedObjects/arrayTypes.js |
+++ b/lib/typedObjects/arrayTypes.js |
@@ -154,17 +154,17 @@ function createSizeWatcher(elementType, |
[bufferIndex, byteOffset] = alloc(reference, |
referenceLength * newSize, (bufferSize / newSize) | 0, |
buffers, viewTypes, views); |
} |
else |
{ |
// This array is too large, it needs an individual buffer |
bufferIndex = addBuffer(referenceLength * newSize, buffers, viewTypes, views); |
- bufferOffset = 0; |
+ byteOffset = 0; |
} |
if (size > 0) |
{ |
let copyBytes = length * referenceLength; |
let src = new Uint8Array(buffers[this.arrayBufferIndex], this.arrayByteOffset, copyBytes); |
let dst = new Uint8Array(buffers[bufferIndex], byteOffset, copyBytes); |
dst.set(src); |