jai shree ram

This commit is contained in:
shiva yadav
2023-04-14 12:54:23 -07:00
parent e2e5a2bf72
commit 86ff33bfc2
4582 changed files with 370514 additions and 0 deletions

19
node_modules/es-abstract/2022/thisSymbolValue.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
'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);
};