Closed ninevra closed 3 years ago
Encoding sparse arrays produces corrupted data. Decoding the result of encoding a sparse array throws IncompleteBufferError.
IncompleteBufferError
const m = require('msgpack5'(); m.encode(new Array(4)); // returns <Buffer 94> m.decode(m.encode(new Array(4)); // throws IncompleteBufferError: unable to decode
Probably this should throw at encode().
encode()
Encoding sparse arrays produces corrupted data. Decoding the result of encoding a sparse array throws
IncompleteBufferError
.Probably this should throw at
encode()
.