msgpackr
msgpackr copied to clipboard
packing a `function` returns the same as packing `undefined`
Description:
If I run the following code
import { Packr } from "msgpackr";
const packer = new Packr({
moreTypes: true,
});
const data = packer.unpack(packer.pack(() => 10));
console.log(data); // undefined
I would have expected that it should throw, or at least give me the option to have it throw