Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2019/thisSymbolValue.js
r0c6b92a r79a0317 2 2 3 3 var $SyntaxError = require('es-errors/syntax'); 4 var callBound = require('call-b ind/callBound');4 var callBound = require('call-bound'); 5 5 6 6 var $SymbolValueOf = callBound('Symbol.prototype.valueOf', true); … … 9 9 10 10 module.exports = function thisSymbolValue(value) { 11 if (typeof value === 'symbol') { 12 return value; 13 } 14 11 15 if (!$SymbolValueOf) { 12 16 throw new $SyntaxError('Symbols are not supported; thisSymbolValue requires that `value` be a Symbol or a Symbol object'); 13 17 } 14 if (typeof value === 'symbol') { 15 return value; 16 } 18 17 19 return $SymbolValueOf(value); 18 20 };
Note:
See TracChangeset
for help on using the changeset viewer.