Decimal.js seems to not support structuredClone, this method will throw DataCloneError because of decimal instance contains a function(constructor ) due to this line code:
https://github.com/MikeMcl/decimal.js/blob/master/decimal.js#L4294
xxxx
// Retain a reference to this Decimal constructor, and shadow Decimal.prototype.constructor
// which points to Object.
x.constructor = Decimal;
xxxx
Any plans to support it?
Decimal.js seems to not support structuredClone, this method will throw DataCloneError because of decimal instance contains a function(
constructor) due to this line code:https://github.com/MikeMcl/decimal.js/blob/master/decimal.js#L4294
Any plans to support it?