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

20 lines
497 B
Plaintext

'use strict';
var $TypeError = require('es-errors/type');
var callBound = require('call-bound');
var $dataViewByteLength = callBound('DataView.prototype.byteLength', true);
var isDataView = require('is-data-view');
// node <= 0.10, < 0.11.4 has a nonconfigurable own property instead of a prototype getter
/** @type {import('.')} */
module.exports = $dataViewByteLength || function byteLength(x) {
if (!isDataView(x)) {
throw new $TypeError('not a DataView');
}
return x.byteLength;
};