Fixing closure compile compatibility when --gen-mutable is used.

Change-Id: I8bf575ba6dc795d2d2eec02fa8977dcc2594eaa6
This commit is contained in:
Wouter van Oortmerssen 2017-03-27 17:44:33 -07:00
parent 281284fa5d
commit 7a36419f24
1 changed files with 9 additions and 1 deletions

View File

@ -944,9 +944,17 @@ flatbuffers.ByteBuffer.prototype.readFloat64 = function(offset) {
/**
* @param {number} offset
* @param {number} value
* @param {number|boolean} value
*/
flatbuffers.ByteBuffer.prototype.writeInt8 = function(offset, value) {
this.bytes_[offset] = /** @type {number} */(value);
};
/**
* @param {number} offset
* @param {number} value
*/
flatbuffers.ByteBuffer.prototype.writeUint8 = function(offset, value) {
this.bytes_[offset] = value;
};