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

16 lines
389 B
Plaintext

'use strict';
var GetIntrinsic = require('get-intrinsic');
var $String = GetIntrinsic('%String%');
var $TypeError = require('es-errors/type');
// https://262.ecma-international.org/6.0/#sec-tostring
module.exports = function ToString(argument) {
if (typeof argument === 'symbol') {
throw new $TypeError('Cannot convert a Symbol value to a string');
}
return $String(argument);
};