'use strict';varGetIntrinsic=require('../GetIntrinsic');varcallBound=require('./callBound');var$SyntaxError=GetIntrinsic('%SyntaxError%');varsymToStr=callBound('Symbol.prototype.toString',true);vargetInferredName=require('./getInferredName');module.exports=functiongetSymbolDescription(symbol){if(!symToStr){thrownew$SyntaxError('Symbols are not supported in this environment');}varstr=symToStr(symbol);// will throw if not a symbolif(getInferredName){varname=getInferredName(symbol);if(name===''){return;}// eslint-disable-next-line consistent-returnreturnname.slice(1,-1);// name.slice('['.length, -']'.length);}vardesc=str.slice(7,-1);// str.slice('Symbol('.length, -')'.length);if(desc){// eslint-disable-next-line consistent-returnreturndesc;}};