1
0
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:
Michal Grno 2021-06-09 16:19:34 +02:00
parent 6545e24c24
commit 498327d8d4
4 changed files with 4 additions and 4 deletions

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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) {