Browse Source

Project import generated by Copybara

PiperOrigin-RevId: 297743020
Daniel Kurka 5 years ago
parent
commit
ed19442270
1 changed files with 2 additions and 1 deletions
  1. 2 1
      js/experimental/runtime/kernel/writer.js

+ 2 - 1
js/experimental/runtime/kernel/writer.js

@@ -411,7 +411,8 @@ class Writer {
     this.writeTag(fieldNumber, WireType.DELIMITED);
     const array = encoderFunction(value);
     this.writeUnsignedVarint32_(array.length);
-    this.writeRaw_(array.buffer);
+    this.closeAndStartNewBuffer_();
+    this.blocks_.push(array);
   }
 
   /**