Check Symbol properly

pull/127/head
Michael Mclaughlin 5 years ago
parent 7818dff1ca
commit 8262235084

@ -4841,7 +4841,7 @@
// Node and other environments that support module.exports.
} else if (typeof module != 'undefined' && module.exports) {
if (Symbol && typeof Symbol.iterator == 'symbol') {
if (typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol') {
P[Symbol.for('nodejs.util.inspect.custom')] = P.toString;
P[Symbol.toStringTag] = 'Decimal';
}

2
decimal.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save