refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
18
home/ags/node_modules/es-abstract/2019/thisSymbolValue.js
generated
vendored
18
home/ags/node_modules/es-abstract/2019/thisSymbolValue.js
generated
vendored
|
|
@ -1,18 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
var $SyntaxError = require('es-errors/syntax');
|
||||
var callBound = require('call-bind/callBound');
|
||||
|
||||
var $SymbolValueOf = callBound('Symbol.prototype.valueOf', true);
|
||||
|
||||
// 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 (typeof value === 'symbol') {
|
||||
return value;
|
||||
}
|
||||
return $SymbolValueOf(value);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue