kriszyp/cbor-x

Problem when variableMapSize is true and keyMap is used

Opened this issue · 1 comments

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

encode(encodeKey(keys[i]))

should be

encode(encoder.encodeKey(keys[i]))

Is this correct?

Thank you

Should be fixed in v1.5.4. Thanks for reporting!