HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/orbi-individual/node_modules/data-view-buffer/index.js
'use strict';

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

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

var $dataViewBuffer = callBound('DataView.prototype.buffer', 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 = $dataViewBuffer || function dataViewBuffer(x) {
	if (!isDataView(x)) {
		throw new $TypeError('not a DataView');
	}

	return x.buffer;
};