diff --git a/decimal.js b/decimal.js index e58df57..8f445dd 100644 --- a/decimal.js +++ b/decimal.js @@ -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. diff --git a/decimal.mjs b/decimal.mjs index a319764..6ef5d42 100644 --- a/decimal.mjs +++ b/decimal.mjs @@ -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);