workaround for node6 regression

pull/353/head
nightwing 2016-08-19 23:29:47 +00:00
rodzic 1d3c41a084
commit 18f7963e2c
1 zmienionych plików z 1 dodań i 1 usunięć

2
node_modules/msgpack-js/msgpack.js wygenerowano vendored
Wyświetl plik

@ -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