Sha256: 45a40eed784b7e943c39763a315886dee22f346c4cd5f019ebe64fdeaa37896c
Contents?: true
Size: 521 Bytes
Versions: 243
Compression:
Stored size: 521 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); var $SymbolToString = callBound('Symbol.prototype.toString', true); var Type = require('./Type'); // https://262.ecma-international.org/6.0/#sec-symboldescriptivestring module.exports = function SymbolDescriptiveString(sym) { if (Type(sym) !== 'Symbol') { throw new $TypeError('Assertion failed: `sym` must be a Symbol'); } return $SymbolToString(sym); };
Version data entries
243 entries across 27 versions & 2 rubygems