 c177363a19
			
		
	
	c177363a19
	
	
	
		
			
			🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			17 lines
		
	
	
		
			434 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			434 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| '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);
 | |
| };
 |