1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2024-10-27 20:34:12 +00:00

#161 Fix Decimal instances deemed plain objects

This commit is contained in:
Michael Mclaughlin 2021-06-22 10:53:21 +01:00
parent 66a21ee9d1
commit ac0711318f
2 changed files with 2 additions and 1 deletions

View File

@ -4862,7 +4862,7 @@
// Create and configure initial Decimal constructor.
Decimal = clone(DEFAULTS);
Decimal.prototype.constructor = Decimal;
Decimal['default'] = Decimal.Decimal = Decimal;
// Create the internal constants from their string values.

View File

@ -4861,6 +4861,7 @@ P[Symbol.toStringTag] = 'Decimal';
// Create and configure initial Decimal constructor.
export var Decimal = clone(DEFAULTS);
Decimal.prototype.constructor = Decimal;
// Create the internal constants from their string values.
LN10 = new Decimal(LN10);