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

19 lines
453 B
Plaintext

'use strict';
var callBound = require('call-bound');
var $SyntaxError = require('es-errors/syntax');
var $bigIntValueOf = callBound('BigInt.prototype.valueOf', true);
// https://262.ecma-international.org/11.0/#sec-thisbigintvalue
module.exports = function thisBigIntValue(value) {
if (typeof value === 'bigint') {
return value;
}
if (!$bigIntValueOf) {
throw new $SyntaxError('BigInt is not supported');
}
return $bigIntValueOf(value);
};