Regenerating node_modules
This commit is contained in:
parent
09b4a82c83
commit
c96f84308a
5488 changed files with 487362 additions and 60779 deletions
19
node_modules/object.assign/node_modules/es-abstract/2018/thisSymbolValue.js
generated
vendored
Normal file
19
node_modules/object.assign/node_modules/es-abstract/2018/thisSymbolValue.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
'use strict';
|
||||
|
||||
var callBound = require('../helpers/callBound');
|
||||
|
||||
var $SymbolValueOf = callBound('Symbol.prototype.valueOf', true);
|
||||
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://ecma-international.org/ecma-262/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);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue