mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2025-06-09 19:04:18 +00:00
keyword 'for' can't work on the IE8
This commit is contained in:
parent
07b8ae1437
commit
234b02a2d6
@ -4854,7 +4854,7 @@
|
||||
// Node and other environments that support module.exports.
|
||||
} else if (typeof module != 'undefined' && module.exports) {
|
||||
if (typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol') {
|
||||
P[Symbol.for('nodejs.util.inspect.custom')] = P.toString;
|
||||
P[Symbol['for']('nodejs.util.inspect.custom')] = P.toString;
|
||||
P[Symbol.toStringTag] = 'Decimal';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user