diff --git a/big.mjs b/big.mjs index 4530e42..ed31f4b 100644 --- a/big.mjs +++ b/big.mjs @@ -946,7 +946,7 @@ P.toFixed = function (dp, rm) { * Big.PE, or a negative exponent equal to or less than Big.NE. * Omit the sign for negative zero. */ -P.toJSON = P.toString = function () { +P[Symbol.for('nodejs.util.inspect.custom')] = P.toJSON = P.toString = function () { var x = this, Big = x.constructor; return stringify(x, x.e <= Big.NE || x.e >= Big.PE, !!x.c[0]);