node-worker-nodes icon indicating copy to clipboard operation
node-worker-nodes copied to clipboard

msgpack-lite changes undefined properties to null

Open jan-osch opened this issue 7 years ago • 0 comments

const msg = require('msgpack-lite');
msg.decode(msg.encode({a:undefined})); // { a: null }

See related issue in msgpack-lite repo

Please consider changing the packing library to msgpack-js as the same issue exists in msgpack, where both undefined and null are casted to the same type.

jan-osch avatar Oct 25 '17 08:10 jan-osch