From 234b02a2d6469023fb2b89b7d8df8046bff4834c Mon Sep 17 00:00:00 2001 From: zhaohuihua Date: Sat, 18 Apr 2020 22:50:31 +0800 Subject: [PATCH] keyword 'for' can't work on the IE8 --- decimal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decimal.js b/decimal.js index 252cc95..a24c5eb 100644 --- a/decimal.js +++ b/decimal.js @@ -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'; }