1
0
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:
zhaohuihua 2020-04-18 22:50:31 +08:00 committed by GitHub
parent 07b8ae1437
commit 234b02a2d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';
}