keyword 'for' can't work on the IE8

pull/146/head
zhaohuihua 4 years ago committed by GitHub
parent 07b8ae1437
commit 234b02a2d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save