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?
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?