Assume Symbol is always defined (#4111)

This commit is contained in:
Luiz Américo
2018-12-10 21:28:20 -03:00
committed by John-David Dalton
parent 4c55ea7068
commit 6cb1f71adf
7 changed files with 8 additions and 11 deletions

View File

@@ -5,8 +5,7 @@ import isSymbol from './isSymbol.js'
const INFINITY = 1 / 0
/** Used to convert symbols to primitives and strings. */
const symbolProto = Symbol ? Symbol.prototype : undefined
const symbolToString = symbolProto ? symbolProto.toString : undefined
const symbolToString = Symbol.prototype.toString
/**
* Converts `value` to a string. An empty string is returned for `null`