BigInt(value) currently calls value[Symbol.toPrimitive]("number").
If that remains it means an amount created from a bigint could lose data if it was passed to BigInt.
Ideas:
- This is OK
- Throw if
BigInt() is passed an amount
- Get a bigint similar to
Amount.prototype.toBigInt()
BigInt(value)currently callsvalue[Symbol.toPrimitive]("number").If that remains it means an amount created from a
bigintcould lose data if it was passed toBigInt.Ideas:
BigInt()is passed an amountAmount.prototype.toBigInt()