Open victormsc opened 1 year ago
When variableMapSize is true and keyMap is used, the function writeObject of the Encoder class throws an exception
Uncaught ReferenceError: encodeKey is not defined
I think that the line
https://github.com/kriszyp/cbor-x/blob/d1c5dc857362fb1d5552ce83a2b3aa7af488b8ea/encode.js#L614
should be
encode(encoder.encodeKey(keys[i]))
Is this correct?
Thank you
Should be fixed in v1.5.4. Thanks for reporting!
When variableMapSize is true and keyMap is used, the function writeObject of the Encoder class throws an exception
Uncaught ReferenceError: encodeKey is not defined
I think that the line
https://github.com/kriszyp/cbor-x/blob/d1c5dc857362fb1d5552ce83a2b3aa7af488b8ea/encode.js#L614
should be
encode(encoder.encodeKey(keys[i]))
Is this correct?
Thank you