You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							17 lines
						
					
					
						
							434 B
						
					
					
				
			
		
		
	
	
							17 lines
						
					
					
						
							434 B
						
					
					
				'use strict';
 | 
						|
 | 
						|
var $TypeError = require('es-errors/type');
 | 
						|
 | 
						|
var callBound = require('call-bound');
 | 
						|
 | 
						|
var $SymbolToString = callBound('Symbol.prototype.toString', true);
 | 
						|
 | 
						|
// https://262.ecma-international.org/6.0/#sec-symboldescriptivestring
 | 
						|
 | 
						|
module.exports = function SymbolDescriptiveString(sym) {
 | 
						|
	if (typeof sym !== 'symbol') {
 | 
						|
		throw new $TypeError('Assertion failed: `sym` must be a Symbol');
 | 
						|
	}
 | 
						|
	return $SymbolToString(sym);
 | 
						|
};
 |