Decimal(v) now works even if v is from a different instance of Decimal

pull/180/head
Michal Grno 3 years ago
parent 6545e24c24
commit 498327d8d4

@ -4261,7 +4261,7 @@
x.constructor = Decimal;
// Duplicate.
if (v instanceof Decimal) {
if (isDecimalInstance(v)) {
x.s = v.s;
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

@ -4257,7 +4257,7 @@ function clone(obj) {
x.constructor = Decimal;
// Duplicate.
if (v instanceof Decimal) {
if (isDecimalInstance(v)) {
x.s = v.s;
if (external) {

Loading…
Cancel
Save