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