mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2026-10-01 16:24:41 +00:00
Decimal(v) now works even if v is from a different instance of Decimal
This commit is contained in:
@@ -4257,7 +4257,7 @@ function clone(obj) {
|
||||
x.constructor = Decimal;
|
||||
|
||||
// Duplicate.
|
||||
if (v instanceof Decimal) {
|
||||
if (isDecimalInstance(v)) {
|
||||
x.s = v.s;
|
||||
|
||||
if (external) {
|
||||
|
||||
Reference in New Issue
Block a user