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

Change-Id: I8bf575ba6dc795d2d2eec02fa8977dcc2594eaa6
parent 281284fa
...@@ -944,9 +944,17 @@ flatbuffers.ByteBuffer.prototype.readFloat64 = function(offset) { ...@@ -944,9 +944,17 @@ flatbuffers.ByteBuffer.prototype.readFloat64 = function(offset) {
/** /**
* @param {number} offset * @param {number} offset
* @param {number} value * @param {number|boolean} value
*/ */
flatbuffers.ByteBuffer.prototype.writeInt8 = function(offset, 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; this.bytes_[offset] = value;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment