diff --git a/src/util/printValue.js b/src/util/printValue.js index d02f49f9e..5ce635614 100644 --- a/src/util/printValue.js +++ b/src/util/printValue.js @@ -5,7 +5,9 @@ const toString = Object.prototype.toString; const toISOString = Date.prototype.toISOString; const errorToString = Error.prototype.toString; const regExpToString = RegExp.prototype.toString; -const symbolToString = Symbol.prototype.toString; +const symbolToString = typeof Symbol !== 'undefined' ? + Symbol.prototype.toString : + ()=> ''; const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;