Files
NapCatQQ/.pnpm-store/v3/files/e2/4b2277d7080a30d37a72ea1148890cc3e301de798ea8f4e7a052dd45356da176c935c47bdbf8d2e59b8e961c1cf9b5a188a3182fb659f69a63da3b168957eb
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

21 lines
526 B
Plaintext

'use strict';
var $SyntaxError = require('es-errors/syntax');
var callBound = require('call-bound');
var $SymbolValueOf = callBound('Symbol.prototype.valueOf', true);
// https://262.ecma-international.org/9.0/#sec-thissymbolvalue
module.exports = function thisSymbolValue(value) {
if (typeof value === 'symbol') {
return value;
}
if (!$SymbolValueOf) {
throw new $SyntaxError('Symbols are not supported; thisSymbolValue requires that `value` be a Symbol or a Symbol object');
}
return $SymbolValueOf(value);
};