mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-30 10:24:32 +00:00
ref[JS]: js protocol
This commit is contained in:
@@ -100,7 +100,7 @@ const ByteBuffer = function() {
|
||||
if (writeIndex > this.buffer.byteLength) {
|
||||
throw new Error('writeIndex out of bounds exception: readOffset: ' + this.readOffset +
|
||||
', writeOffset: ' + this.writeOffset +
|
||||
'(expected: 0 <= readOffset <= writeOffset <= capacity:' + this.buffer.byteLength);
|
||||
'(expected: 0 <= readOffset <= writeOffset <= capacity:' + this.buffer.byteLength) + ')';
|
||||
}
|
||||
this.writeOffset = writeIndex;
|
||||
};
|
||||
@@ -113,7 +113,7 @@ const ByteBuffer = function() {
|
||||
if (readIndex > this.writeOffset) {
|
||||
throw new Error('readIndex out of bounds exception: readOffset: ' + this.readOffset +
|
||||
', writeOffset: ' + this.writeOffset +
|
||||
'(expected: 0 <= readOffset <= writeOffset <= capacity:' + this.buffer.byteLength);
|
||||
'(expected: 0 <= readOffset <= writeOffset <= capacity:' + this.buffer.byteLength) + ')';
|
||||
}
|
||||
this.readOffset = readIndex;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user