Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/typedObjects/arrayTypes.js

Issue 6155997320052736: Issue 1773 - [Typed objects] assignment to undeclared variable bufferOffset in unit tests (Closed)
Patch Set: Created Jan. 10, 2015, 12:20 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld