Sha256: 27b446ef7c0dcc60f576357f187bb9af1a86d6557ab82a144d2390e793dc94db
Contents?: true
Size: 514 Bytes
Versions: 174
Compression:
Stored size: 514 Bytes
Contents
'use strict'; var callBound = require('call-bind/callBound'); var $SymbolValueOf = callBound('Symbol.prototype.valueOf', true); var Type = require('./Type'); // https://262.ecma-international.org/9.0/#sec-thissymbolvalue module.exports = function thisSymbolValue(value) { if (!$SymbolValueOf) { throw new SyntaxError('Symbols are not supported; thisSymbolValue requires that `value` be a Symbol or a Symbol object'); } if (Type(value) === 'Symbol') { return value; } return $SymbolValueOf(value); };
Version data entries
174 entries across 30 versions & 4 rubygems