pull/4981/head
Yilun Chong 7 years ago
parent 82a4e4e3d3
commit ed1cd2c5c6
  1. 1
      js/binary/reader.js
  2. 1
      js/binary/reader_test.js

@ -388,7 +388,6 @@ jspb.BinaryReader.prototype.skipFixed64Field = function() {
* Skips over the next group field in the binary stream.
*/
jspb.BinaryReader.prototype.skipGroup = function() {
// Keep a stack of start-group tags that must be matched by end-group tags.
var previousField = this.nextField_;
do {
if (!this.nextField()) {

@ -680,6 +680,7 @@ describe('binaryReaderTest', function() {
var dummyMessage = /** @type {!jspb.BinaryMessage} */({});
writer.writeGroup(5, dummyMessage, function() {
writer.writeInt64(42, 42);
writer.writeInt64(44, 44);
writer.writeString(43, 'The quick brown fox jumps over the lazy dog');
writer.writeGroup(6, dummyMessage, function() {
writer.writeInt64(84, 42);

Loading…
Cancel
Save