mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2026-09-25 05:14:56 +00:00
#161 Fix Decimal instances deemed plain objects
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user