import {serializeError} from 'serialize-error'
const err = new Error
err.timestamp = process.hrtime.bigint()
JSON.stringify(serializeError(err))
// Uncaught TypeError: Do not know how to serialize a BigInt
// at JSON.stringify (<anonymous>)
The fix seems simple if doing something akin to buffers (though the value could be embedded). Am I missing something? If fixed by a PR, could it be backported no a non-ESM version?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too