Permalink
Browse files

decodeDelimited always forks if writer is specified, see #531

  • Loading branch information...
dcodeIO committed Dec 9, 2016
1 parent 4157a0e commit 55db92e21a26c04f524aeecb2316968c000e744d
Showing with 7 additions and 7 deletions.
  1. +2 −2 dist/protobuf.js
  2. +1 −1 dist/protobuf.js.map
  3. +2 −2 dist/protobuf.min.js
  4. BIN dist/protobuf.min.js.gz
  5. +1 −1 dist/protobuf.min.js.map
  6. +1 −1 src/type.js

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
BIN +9 Bytes (100%) dist/protobuf.min.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -341,7 +341,7 @@ TypePrototype.encode = function encode(message, writer) {
* @returns {Writer} writer
*/
TypePrototype.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
return this.encode(message, writer && writer.fork() || writer).ldelim();
};
/**

0 comments on commit 55db92e

Please sign in to comment.