Umama-at-Bluchip/Quick-UI
0
1'use strict';2 3var $TypeError = require('es-errors/type');4 5var callBound = require('call-bind/callBound');6 7var $dataViewBuffer = callBound('DataView.prototype.buffer', true);8 9var isDataView = require('is-data-view');10 11// node <= 0.10, < 0.11.4 has a nonconfigurable own property instead of a prototype getter12/** @type {import('.')} */13module.exports = $dataViewBuffer || function dataViewBuffer(x) {14 if (!isDataView(x)) {15 throw new $TypeError('not a DataView');16 }17 18 return x.buffer;19};20 