#161 Fix Decimal instances deemed plain objects

pull/186/head
Michael Mclaughlin 3 years ago
parent 66a21ee9d1
commit ac0711318f

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

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

Loading…
Cancel
Save