mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2024-10-27 20:34:12 +00:00
Decimal(v) now works even if v is from a different instance of Decimal
This commit is contained in:
parent
6545e24c24
commit
498327d8d4
@ -4261,7 +4261,7 @@
|
|||||||
x.constructor = Decimal;
|
x.constructor = Decimal;
|
||||||
|
|
||||||
// Duplicate.
|
// Duplicate.
|
||||||
if (v instanceof Decimal) {
|
if (isDecimalInstance(v)) {
|
||||||
x.s = v.s;
|
x.s = v.s;
|
||||||
|
|
||||||
if (external) {
|
if (external) {
|
||||||
|
2
decimal.min.js
vendored
2
decimal.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -4257,7 +4257,7 @@ function clone(obj) {
|
|||||||
x.constructor = Decimal;
|
x.constructor = Decimal;
|
||||||
|
|
||||||
// Duplicate.
|
// Duplicate.
|
||||||
if (v instanceof Decimal) {
|
if (isDecimalInstance(v)) {
|
||||||
x.s = v.s;
|
x.s = v.s;
|
||||||
|
|
||||||
if (external) {
|
if (external) {
|
||||||
|
Loading…
Reference in New Issue
Block a user