HEX
Server: nginx/1.18.0
System: Linux srv01 5.15.0-171-generic #181-Ubuntu SMP Fri Feb 6 22:44:50 UTC 2026 x86_64
User: RaviMohan (1026)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/GemsPile/kh.gemspile.com/web/node_modules/data-view-byte-length/index.js
'use strict';

var $TypeError = require('es-errors/type');

var callBound = require('call-bind/callBound');

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;
};