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

@@ -9,7 +9,7 @@ const symbolValueOf = Symbol.prototype.valueOf
* @returns {Object} Returns the cloned symbol object.
*/
function cloneSymbol(symbol) {
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}
return Object(symbolValueOf.call(symbol))
}
export default cloneSymbol