refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
19
home/ags/node_modules/data-view-byte-length/index.js
generated
vendored
19
home/ags/node_modules/data-view-byte-length/index.js
generated
vendored
|
|
@ -1,19 +0,0 @@
|
|||
'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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue