diff --git a/node_modules/msgpack-js/msgpack.js b/node_modules/msgpack-js/msgpack.js index 7f758538..abfcc904 100644 --- a/node_modules/msgpack-js/msgpack.js +++ b/node_modules/msgpack-js/msgpack.js @@ -202,7 +202,7 @@ function encode(value, buffer, offset) { // fix raw if (length < 0x20) { buffer[offset] = length | 0xa0; - buffer.write(value, offset + 1); + length && buffer.write(value, offset + 1); return 1 + length; } // raw 16