#146 Symbol.for to Symbol['for']

pull/186/head
Michael Mclaughlin 3 years ago
parent 04c6c6f115
commit 0e0dcaec27

@ -4858,7 +4858,7 @@
// Node and other environments that support module.exports. // Node and other environments that support module.exports.
} else if (typeof module != 'undefined' && module.exports) { } else if (typeof module != 'undefined' && module.exports) {
if (typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol') { 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'; P[Symbol.toStringTag] = 'Decimal';
} }

Loading…
Cancel
Save