1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-03-02 03:49:24 +00:00

Merge pull request #180 from m93a/patch-isdecimal

Make the constructor accept different instances of Decimal
This commit is contained in:
Michael M
2021-06-09 18:43:39 +01:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

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

View File

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